    @Test
    public void testGetStats() throws ParseException
    {

        Map<String, Object> fakeStats = new HashMap<>();
        fakeStats.put("stat1", "value1");
        fakeStats.put("stat2", "value2");
        VideobridgeStatistics videobridgeStatistics = mock(VideobridgeStatistics.class);
        when(videobridgeStatistics.getStats()).thenReturn(fakeStats);
        when(statsManager.getStatistics()).thenReturn(videobridgeStatistics);

        Response resp = target(BASE_URL).request().get();
        assertEquals(HttpStatus.OK_200, resp.getStatus());
        assertEquals(MediaType.APPLICATION_JSON_TYPE, resp.getMediaType());

        JSONObject json = getJsonResult(resp);

        assertEquals("value1", json.get("stat1"));
        assertEquals("value2", json.get("stat2"));
    }