@Test
public void testSize() {

    Map<String, Integer> map = new HashMap<>();
    map.put("test1", 1);
    map.put("test2", 2);
    List<String> list = new ArrayList<String>();
    list.add("test1");
    list.add("test2");
    when(mockTaskService.getTaskQueueSizes(anyList())).thenReturn(map);
    assertEquals(map, taskResource.size(list));
}