@Override
    public TableEntryByTypeTransformer tableEntryByTypeTransformer() {
        return transformer;
    }
@Test
    void throws_for_multiple_empties_with_correct_method() throws Throwable {
        Map<String, String> fromValue = new LinkedHashMap<>();
        fromValue.put("[empty]", "a");
        fromValue.put("[blank]", "b");
        Method method = JavaDefaultDataTableEntryTransformerDefinitionTest.class.getMethod("correct_method", Map.class,
            Type.class);
        JavaDefaultDataTableEntryTransformerDefinition definition = new JavaDefaultDataTableEntryTransformerDefinition(
            method, lookup, false, new String[] { "[empty]", "[blank]" });

        IllegalArgumentException exception = assertThrows(
            IllegalArgumentException.class,
            () -> definition.tableEntryByTypeTransformer().transform(fromValue, String.class, cellTransformer));

        assertThat(exception.getMessage(), is(
            "After replacing [empty] and [blank] with empty strings the datatable entry contains duplicate keys: {[empty]=a, [blank]=b}"));
    }