CustomMappingsConfigurer extends OrderedConfigurer<CustomMappings, R> { public BidiMappingService getMappingService() { return mappingService; }  @Override Collection<CustomMappings> lookup(Registry registry); @Override void configure(CustomMappings configuration); BidiMappingService getMappingService(); void setMappingService(BidiMappingService mappingService);  }
@Test public void testMappings() { assertEquals("b1", configurer.getMappingService().get("m1", "a1")); assertEquals("b2", configurer.getMappingService().get("m2", "a2")); assertEquals("b3", configurer.getMappingService().get("m3", "a3")); assertEquals("c1", configurer.getMappingService().get("m4", "d1")); assertEquals("c2", configurer.getMappingService().get("m5", "d2")); assertEquals("c3", configurer.getMappingService().get("m6", "d3")); }