### Question:
SofaMappingFactory { public static SofaMapping createSofaMapping(String componentKey, String componentSofaName, String aggregateSofaName) { SofaMapping sofaMapping = new SofaMapping_impl(); sofaMapping.setComponentKey(componentKey); sofaMapping.setComponentSofaName(componentSofaName); sofaMapping.setAggregateSofaName(aggregateSofaName); return sofaMapping; } private  SofaMappingFactory(); static SofaMapping createSofaMapping(String componentKey, String componentSofaName,
          String aggregateSofaName); static SofaMapping createSofaMapping(Class<? extends AnalysisComponent> componentClass,
          String componentSofaName, String aggregateSofaName);  }### Answer:
@Test public void test() { SofaMapping sofaMapping = SofaMappingFactory.createSofaMapping(NoOpAnnotator.class, "B", "A"); assertEquals("A", sofaMapping.getAggregateSofaName()); assertEquals(NoOpAnnotator.class.getName(), sofaMapping.getComponentKey()); assertEquals("B", sofaMapping.getComponentSofaName()); }