@Override
    public SerializerAdapter serializerFor(Object object, boolean includeSchema) {
        Class<?> clazz = object == null ? null : object.getClass();

        SerializerAdapter serializer = null;
        if (clazz != null) {
            serializer = serializersByClass.get(clazz);
        }
        if (serializer == null) {
            try {
                serializer = delegate.serializerFor(object, includeSchema);
            } catch (HazelcastSerializationException hse) {
                throw serializationException(clazz, hse);
            }
        }
        if (serializer == null) {
            throw active ? serializationException(clazz) : new HazelcastInstanceNotActiveException();
        }
        return serializer;
    }
@Test
    public void when_triesToFindSerializerForUnregisteredType_then_Fails() {
        // Given
        DelegatingSerializationService service = new DelegatingSerializationService(emptyMap(), DELEGATE);

        // When
        // Then

        /* TODO (mdumandag) - remove the comments when we start testing for
            applicability of the reflective serializer before returning it
        assertThatThrownBy(() -> service.serializerFor(new Object(), false))
                .isInstanceOf(JetException.class);*/
        assertThatThrownBy(() -> service.serializerFor(Integer.MAX_VALUE))
                .isInstanceOf(JetException.class);
    }