@Override
    public <T> T convert(DataTable dataTable, Type type) {
        return convert(dataTable, type, false);
    }
@Test
    void convert_to_object__more_then_one_item__throws_exception() {
        DataTable table = parse("",
            "| ♘ |",
            "| ♝ |");

        registry.defineDataTableType(new DataTableType(Piece.class, PIECE_TABLE_CELL_TRANSFORMER));

        CucumberDataTableException exception = assertThrows(
            CucumberDataTableException.class,
            () -> converter.convert(table, Piece.class));
        assertThat(exception.getMessage(), is(format("" +
                "Can't convert DataTable to %s. " +
                "The table contained more then one item: [♘, ♝]",
            typeName(Piece.class))));
    }