### Question:
ObjectUtil { static <T> boolean isSupported(Class<T> clazz) { checkNotNull(clazz,"Class cannot be null"); return !NullObjectFactory.class.isInstance(ObjectUtil.findObjectFactory(clazz)); } private  ObjectUtil();   }### Answer:
@Test public void rejectUnsupportedTypes() { assertThat(ObjectUtil.isSupported(ObjectUtil.class),equalTo(false)); }
@Test public void rejectUnsupportedTypes$conventionMethod$notPublic() { assertThat(ObjectUtil.isSupported(NotPublicConventionMethod.class),equalTo(false)); }
@Test public void rejectUnsupportedTypes$conventionMethod$notStatic() { assertThat(ObjectUtil.isSupported(NotPublicConventionMethod.class),equalTo(false)); }
@Test public void rejectUnsupportedTypes$conventionMethod$notPublicNorStatic() { assertThat(ObjectUtil.isSupported(NotPublicNorStaticConventionMethod.class),equalTo(false)); }
@Test public void rejectUnsupportedTypes$conventionMethod$incompatibleReturnType() { assertThat(ObjectUtil.isSupported(IncompatibleReturnConventionMethod.class),equalTo(false)); }
@Test public void testIsSupported$lang$numberObjects() throws Exception { verifySupport(langNumberObjects); }
@Test public void testIsSupported$utilObjects() throws Exception { verifySupport(utilObjects); }
@Test public void testIsSupported$xmlObjects() throws Exception { verifySupport(xmlObjects); }
@Test public void testIsSupported$netObjects() throws Exception { URI uri=URI.create("http: URL url=uri.toURL(); verifySupport(uri,url); }
@Test public void testIsSupported$enumObjects() throws Exception { verifySupport(DefaultEnumType.V1,DefaultEnumType.V2); }