The task is to create a reusable utility class that provides synchronization mechanism similar to row-level DB locking.
The class is supposed to be used by the components that are responsible for managing storage and caching of different type of entities in the application. EntityLocker itself does not deal with the entities, only with the IDs (primary keys) of the entities.
Start tests by doing:
gradle test