@Override
    public Map<String, Object> create(final T entity, final Class<?> entityClass) {
        final Map<String, Object> respEntityContext = this.responseEntityConverter.convertValue(entity, entityClass);
        if (respEntityContext != null) {
            return Map.of("response_entity", respEntityContext);
        } else {
            return Map.of("response_entity", Map.of());
        }
    }
@Test
    void createsEmptyContextWhenConverterFailsToConvert() {
        final Map<String, Object> expected = Map.of("response_entity", Map.of());

        ResponseEntityConverter converter = mock(ResponseEntityConverter.class);
        DefaultSuccessContextCreator<TinyEntity> toTest = new DefaultSuccessContextCreator<>(converter);
        final TinyEntity tinyEntity = new TinyEntity("42", "Carramba!");
        assertThat(toTest.create(tinyEntity, TinyEntity.class)).isEqualTo(expected);
    }