@Test
public void testGetAllConfig() {

    Map<String, Object> configs = new HashMap<>();
    configs.put("config1", "test");
    when(mockAdminService.getAllConfig()).thenReturn(configs);
    assertEquals(configs, adminResource.getAllConfig());
}