### Question:
Filter { Filter setParameters(Query query) { if (!conditions.isEmpty()) { for (Condition condition : conditions) { condition.setParameters(query, condition.getValue()); } } return this; } Filter(Class<?> clazz);  Filter(int perPage, int pageNo, Condition... conditions);  Filter();  Filter(Condition... conditions); Filter condition(String name, Object value); Filter condition(String name, Operator operator, Object value); Filter page(int pageNo, int perPage); Filter sortBy(String name, boolean asc); Filter sortBy(SortField sortField); Filter cacheable(boolean cacheable); Filter clone(boolean paginate); List<T> list(); long count(); void delete();  }### Answer:
@Test public void shouldNotSetParametersIfConditionsIsEmpty() { Filter filter = new Filter(); Path path = mock(Path.class); when(path.getJavaType()).thenReturn(String.class); Query query = mock(Query.class); filter.setParameters(query); verify(query, never()).setParameter(anyString(), anyString()); }