@Test
public void shouldTestSuggestColumnValid() throws IOException {

    // given
    final String json = IOUtils.toString(this.getClass().getResourceAsStream("sample_column.json"), UTF_8);
    ObjectMapper mapper = new ObjectMapper();
    final ColumnMetadata columnMetadata = mapper.readValue(json, ColumnMetadata.class);
    String[] expectedResult =
            { "clear_invalid", "delete_invalid", "fillinvalidwithdefault", "standardize_value", "delete_empty" };
    // when
    String[] newActionFormArray = suggestionEngine //
            .score(actionRegistry.findAll(), columnMetadata) //
            .filter(i -> i.getScore() > 0) //
            .limit(5) //
            .map(a -> a.getAction().getName()) //
            .toArray(String[]::new);
    // then
    assertEquals(5, newActionFormArray.length);
    assertArrayEquals(expectedResult, newActionFormArray);
}