### Question:
BapiClassFormatter { public Map<String, String> createClasses(final BapiMapping mapping, final String packagePath) { checkPackagePath(packagePath); Map<String, String> result = new HashMap<>(); String bapiClassName = BapiFormatHelper.getCamelCaseBig(mapping.getBapiName()); String bapiClass = formatBapiClass(mapping, packagePath); result.put(bapiClassName, bapiClass); result.putAll(formatStructureClasses(mapping, packagePath)); return result; }  Map<String, String> createClasses(final BapiMapping mapping, final String packagePath);  }### Answer:
@Test public void createsClasses() { BapiMapping bapiMapping = mapper.mapBapi(BapiTest.class); Map<String, String> classes = formatter.createClasses(bapiMapping, "org.hibersap.generated.test"); assertNotNull(classes); assertEquals(4, classes.size()); assertTrue(classes.containsKey("BapiTest")); assertTrue(classes.containsKey("TestStructure")); assertTrue(classes.containsKey("TestTable")); assertTrue(classes.containsKey("TestSubStructure")); }
@Test public void createsClassWithChangingParameter() { BapiMapping bapiMapping = mapper.mapBapi(BapiTest.class); Map<String, String> classes = formatter.createClasses(bapiMapping, "org.hibersap.generated.test"); String bapiTestSource = classes.get("BapiTest"); assertThat(bapiTestSource).contains("@org.hibersap.annotations.Changing\n" + "\t@org.hibersap.annotations.Parameter(\"TEST_CHANGING\")\n" + "\tprivate java.util.Date date;"); }