@Test
public void testGetHistoryCount(){

	WebResource webResource = resource();
	MultivaluedMap<String, String> paramMap = new MultivaluedMapImpl();
	paramMap.add("appId", TESTAPPID);
	paramMap.add("startTime", String.valueOf(0));
	paramMap.add("endTime", String.valueOf(System.currentTimeMillis() * 2));
	paramMap.add("status", "3");
	paramMap.add("scaleType", "scaleIn");
	ClientResponse response = webResource.path("/history/count").queryParams(paramMap).type(MediaType.APPLICATION_JSON).get(ClientResponse.class);
	String jsonStr = response.getEntity(String.class);
	JSONObject jo = new JSONObject(jsonStr);
	assertEquals(jo.get("count"),1);
       assertEquals(response.getStatus(), STATUS200);
}