This is not needed. you can just say:

assertEquals(size,map2Size)

Isn't ths a lot cleaner?

Use a static import for the Assert.assertEquals. You don't need to print the size on the assert message, junit will do that for you. And there is zero added value for a developer to see the name of the test since he will get a stacktrace with the name of the test.