### Question:
PrimitiveObjectFactory implements ObjectFactory<T> { @Override public Class<? extends T> targetClass() { return this.valueClass; } private  PrimitiveObjectFactory(final Class<? extends T> valueClass); @Override Class<? extends T> targetClass(); @Override @SuppressWarnings("unchecked") T fromString(final String rawValue); @Override String toString(final T value); static PrimitiveObjectFactory<T> create(final Class<? extends T> valueClass);  }### Answer:
@Test public void testTargetClass() throws Exception { PrimitiveObjectFactory<Boolean> factory = PrimitiveObjectFactory.create(boolean.class); assertThat((Object)factory.targetClass(),equalTo((Object)boolean.class)); }