@Test
public void testList() {

    final List<String> expectedNames = new ArrayList<>();
    expectedNames.add("Filter1");
    expectedNames.add("Filter2");
    expectedNames.add("Filter3");
    when(mockedManager.getAllFilterNames()).thenReturn(expectedNames);
    final JsonNode res = service.list();
    for (int i = 0; i < res.size(); i++) {
        assertThat(res.get(i).textValue()).isEqualTo(expectedNames.get(i));
    }
}