### Question:
ExtendedTypeMap { public void registerType(ExtendedType type) { typeMap.put(type.getClassName(), type); } ExtendedTypeMap(); void addFactory(ExtendedTypeFactory factory); void removeFactory(ExtendedTypeFactory factory); void registerType(ExtendedType type); ExtendedType getDefaultType(); ExtendedType getRegisteredType(String javaClassName); ExtendedType getRegisteredType(Class<?> javaClass); void unregisterType(String javaClassName); String[] getRegisteredTypeNames();  }### Answer:
@Test public void testRegisterType() throws Exception { ExtendedTypeMap map = new ExtendedTypeMap(); ExtendedType tstType = new MockExtendedType(); assertSame(map.getDefaultType(), map.getRegisteredType(tstType.getClassName())); map.registerType(tstType); assertSame(tstType, map.getRegisteredType(tstType.getClassName())); map.unregisterType(tstType.getClassName()); assertSame(map.getDefaultType(), map.getRegisteredType(tstType.getClassName())); }