@Test
public void testHalTaskQueryWithEmptyVariablesProperties() {
// mock properties with variable name list in wrong format
Map<String, Object> properties = new HashMap<String, Object>();
properties.put("variables", Collections.emptyList());
Filter filter = mockFilter().properties(properties).build();
when(filterServiceMock.getFilter(eq(EXAMPLE_FILTER_ID))).thenReturn(filter);
given()
.pathParam("id", EXAMPLE_FILTER_ID)
.header(ACCEPT_HAL_HEADER)