ClassMappings { public ClassMap find(Class<?> srcClass, Class<?> destClass) { return classMappings.get(keyFactory.createKey(srcClass, destClass)); } ClassMappings(BeanContainer beanContainer); void addDefault(Class<?> srcClass, Class<?> destClass, ClassMap classMap); void add(Class<?> srcClass, Class<?> destClass, ClassMap classMap); void add(Class<?> srcClass, Class<?> destClass, String mapId, ClassMap classMap); void addAll(ClassMappings additionalClassMappings); void failOnDuplicate(Object result, ClassMap classMap); Map<String, ClassMap> getAll(); long size(); ClassMap find(Class<?> srcClass, Class<?> destClass); boolean contains(Class<?> srcClass, Class<?> destClass, String mapId); ClassMap find(Class<?> srcClass, Class<?> destClass, String mapId);  }
@Test public void testFind_Null() { assertNull(classMappings.find(String.class, Integer.class)); }
@Test(expected = MappingException.class) public void testNotFoundByMapid() { classMappings.find(NestedClass.class, String.class, "A"); }