### Question:
ValueObjectTypeFactory implements ExtendedTypeFactory { @SuppressWarnings("unchecked") @Override public ExtendedType<? extends ValueObjectType> getType(Class<?> objectClass) { ValueObjectType<?, ?> valueObjectType = valueObjectTypeRegistry.getValueType(objectClass); if(valueObjectType == null) { return null; } ExtendedType<?> decorator = map.getExplictlyRegisteredType(valueObjectType.getTargetType().getCanonicalName()); return new ExtendedTypeConverter(decorator, valueObjectType); } ValueObjectTypeFactory(ExtendedTypeMap map, ValueObjectTypeRegistry valueObjectTypeRegistry); @SuppressWarnings("unchecked") @Override ExtendedType<? extends ValueObjectType> getType(Class<?> objectClass);  }### Answer:
@Test public void testUUIDtoByteArray(){ ValueObjectTypeFactory.ExtendedTypeConverter converter1 = (ValueObjectTypeFactory.ExtendedTypeConverter) factory.getType(UUID.class); assertNotNull(converter1); assertSame(tstType1, converter1.extendedType); }
@Test public void testString(){ ValueObjectTypeFactory.ExtendedTypeConverter converter2 = (ValueObjectTypeFactory.ExtendedTypeConverter) factory.getType(String.class); assertNotNull(converter2); assertSame(tstType2, converter2.extendedType); }
@Test public void testInt(){ ValueObjectTypeFactory.ExtendedTypeConverter converter3 = (ValueObjectTypeFactory.ExtendedTypeConverter) factory.getType(int.class); assertNotNull(converter3); assertSame(tstType3, converter3.extendedType); }
@Test public void testStringArray(){ ValueObjectTypeFactory.ExtendedTypeConverter converter4 = (ValueObjectTypeFactory.ExtendedTypeConverter) factory.getType(String[].class); assertNotNull(converter4); assertSame(tstType4, converter4.extendedType); }
@Test public void testInheritantType() { ValueObjectTypeFactory.ExtendedTypeConverter converter5 = (ValueObjectTypeFactory.ExtendedTypeConverter) factory.getType(TestClass.class); assertNotNull(converter5); assertSame(tstType5, converter5.extendedType); }