### Question:
EntityPropertiesToMessages { public Properties getProperties() { if (!analyzed) { analyze(); } return messages; } EntityPropertiesToMessages(String... packageName); void analyze(); Properties getProperties();  }### Answer:
@Test public void testGetProperties() { final EntityPropertiesToMessages testee = new EntityPropertiesToMessages("testdata"); final Properties actual = testee.getProperties(); assertThat(actual).hasSize(10); assertThat(actual).containsEntry("db.SubClass.test", "test") .containsEntry("db.SubClass.subTest", "subTest") .containsEntry("db.Book.author", "author") .containsEntry("db.Author.books", "books"); }