protected final void safeRegister(final Class type, final Serializer serializer) {
        safeRegister(type, createSerializerAdapter(serializer));
    }
@Test(expected = IllegalArgumentException.class)
    public void testSafeRegister_ConstantType() {
        abstractSerializationService.safeRegister(Integer.class, new StringBufferSerializer(true));
    }