### Question:
ObjectUtil { static <T> T fromString(Class<T> clazz, String str) { checkNotNull(clazz,"Class cannot be null"); checkNotNull(str,"Raw value cannot be null"); return ObjectUtil.findObjectFactory(clazz).fromString(str); } private  ObjectUtil();   }### Answer:
@Test public void rejectUnsupportedTypes$parseFailure() { try { ObjectUtil.fromString(ObjectUtil.class,"random data"); fail("Should fail on unsupported types"); } catch (ObjectTransformationException e) { assertThat((Object)e.getValueClass(),equalTo((Object)ObjectUtil.class)); } }