assertEquals(template1.getClass().getName(), template2.getClass().getName());
// sill, both classes are not the same
assertNotSame(template1.getClass(), template2.getClass());
// but, both still work
String transformed1 = template1.transform(DEFAULT_MODEL, DEFAULT_LOCALE);
String transformed2 = template2.transform(DEFAULT_MODEL, DEFAULT_LOCALE);
// and give the same result
assertEquals(transformed1, transformed2);
}
}