public void initializeTypeState(Class<?> clazz) {
        Objects.requireNonNull(clazz);
        getTypeMapper(clazz, null, null);
    }
@Test
    public void testFailsToCreateSchemaIfThereAreDuplicateFields() {
        try {
            HollowObjectMapper mapper = new HollowObjectMapper(writeStateEngine);
            mapper.initializeTypeState(Child.class);
            Assert.fail("Expected Exception not thrown");
        } catch (IllegalArgumentException e) {
            Assert.assertEquals("Duplicate field name 'myField1' found in class hierarchy for class com.netflix.hollow.core.write.objectmapper.HollowObjectMapperTest$Child", e.getMessage());
        }
    }