public static class SomeExtendingObject extends SomeObject {}
@Test
public void testFindSerializer() {
Serializer serializer1 = SerializerFactory.getSerializer(SomeExtendingObject.class);
Serializer serializer2 = SerializerFactory.getSerializer(SomeObject.class);
assertEquals(serializer1, serializer2);
Serializer serializer3 = SerializerFactory.getSerializer(SomeExtendingInterface.class);
assertEquals(serializer1, serializer3);
}