@Test
public void getUsersTest() {

    Response response = target().path("users").request().get();
    verify(engineManager, atLeastOnce()).getUsers();
    assertEquals(response.getStatus(), 200);
    try {
        String str = response.readEntity(String.class);
        JSONArray result = JSONArray.fromObject(str);
        assertEquals(result.size(), users.size());
    } catch (Exception e) {
        fail("Expected no exception, but got: " + e.getMessage());
    }
}