@Test public void testImmutableCompleteInteger() { ObjectTransformer<Integer, Integer> t = factory.createCopyTransformer(Integer.class); Integer val = 45; Integer v2 = t.compact(val); assertTrue(val == v2); v2 = t.expand(val); assertTrue(val == v2); }
@Override public <T> ObjectTransformer<T, T> createCopyTransformer(Class<T> clazz) { return createCopyTransformer(clazz, this.getClass().getClassLoader()); }
SimpleObjectCopyFactory implements ObjectCopyFactory { @Override public <T> ObjectTransformer<T, T> createCopyTransformer(Class<T> clazz) { return createCopyTransformer(clazz, this.getClass().getClassLoader()); } }
SimpleObjectCopyFactory implements ObjectCopyFactory { @Override public <T> ObjectTransformer<T, T> createCopyTransformer(Class<T> clazz) { return createCopyTransformer(clazz, this.getClass().getClassLoader()); }  }
SimpleObjectCopyFactory implements ObjectCopyFactory { @Override public <T> ObjectTransformer<T, T> createCopyTransformer(Class<T> clazz) { return createCopyTransformer(clazz, this.getClass().getClassLoader()); }  @Override ObjectTransformer<T, T> createCopyTransformer(Class<T> clazz); @SuppressWarnings("unchecked") @Override ObjectTransformer<T, T> createCopyTransformer(
    Class<T> clazz, ClassLoader classLoader); }
SimpleObjectCopyFactory implements ObjectCopyFactory { @Override public <T> ObjectTransformer<T, T> createCopyTransformer(Class<T> clazz) { return createCopyTransformer(clazz, this.getClass().getClassLoader()); }  @Override ObjectTransformer<T, T> createCopyTransformer(Class<T> clazz); @SuppressWarnings("unchecked") @Override ObjectTransformer<T, T> createCopyTransformer(
    Class<T> clazz, ClassLoader classLoader);  }