@Test
public void testQueueDetails() {

    Map<String, Long> map = new HashMap<>();
    map.put("queue1", 1L);
    map.put("queue2", 2L);
    when(mockTaskService.getAllQueueDetails()).thenReturn(map);
    assertEquals(map, taskResource.all());
}