Checkout my screenshot:
@Test
public void getAllEmployeesTest() throws IOException {
HttpResponse response = http.get("http://localhost:8087/employee");
List<Employee> expectedList = new ArrayList<Employee>();
expectedList.add(new Employee(2, "Yashwant", "Chavan", 30, true));
List<Employee> actualList = gson.fromJson(EntityUtils.toString(response.getEntity()), new ArrayList<Employee>().getClass());
Assert.assertEquals(actualList, expectedList);
}