### Question:
ModelTransformer { public static <T> T transportFromPersistence(final Class<T> clazz, final Object persistent) throws Exception { return transform(clazz, clazz, persistent); }  static T transportFromPersistence(final Class<T> clazz, final Object persistent); static T persistenceFromTransport(final Class<T> clazz, final Object transport); static T transform(final Class sourceClass, final Class<T> targetClass,
        final Object template); static void transform(final Class sourceClass, final Class<T> targetClass,
        final Object source, final T target);  }### Answer:
@Test public void transformPersistence() throws Exception { Datacenter obj = new Datacenter("test", "situation test"); DatacenterDto dto = ModelTransformer.transportFromPersistence(DatacenterDto.class, obj); assertEquals(obj.getId(), dto.getId()); assertEquals(obj.getName(), dto.getName()); assertEquals(obj.getLocation(), dto.getLocation()); }