Realization of struct Map. Java with JUnit tests