@Test
public void testJsonToGeoFenceList() {

    List<String> actualList = Utils.jsonToGeoFenceList(GeofenceJSON.getGeofence());
    List<String> expectedList = Arrays.asList("310001", "310002");
    assertThat(actualList, CoreMatchers.is(expectedList));
    List<String> actualListWhenJsonArrayIsEmpty = Utils.jsonToGeoFenceList(GeofenceJSON.getEmptyGeofence());
    List<String> expectedListWhenJsonArrayIsEmpty = new ArrayList<>();
    assertThat(actualListWhenJsonArrayIsEmpty, CoreMatchers.is(expectedListWhenJsonArrayIsEmpty));
    JSONObject emptyJson = GeofenceJSON.getEmptyJson();
    List<String> actualListWhenJsonIsEmpty = Utils.jsonToGeoFenceList(emptyJson);
    List<String> expectedListWhenJsonIsEmpty = new ArrayList<>();
    assertThat(actualListWhenJsonIsEmpty, CoreMatchers.is(expectedListWhenJsonIsEmpty));
}