@Test
public void testGetGeofencingRequest() {

    GoogleGeofenceAdapter geofenceAdapter = new GoogleGeofenceAdapter(application);
    List<CTGeofence> ctGeofences = CTGeofence.from(GeofenceJSON.getGeofence());
    try {
        List<Geofence> googleGeofences = WhiteboxImpl.invokeMethod(geofenceAdapter,
                "getGoogleGeofences", ctGeofences);
        GeofencingRequest geofencingRequest = WhiteboxImpl.invokeMethod(geofenceAdapter,
                "getGeofencingRequest", googleGeofences);
        assertEquals(GeofencingRequest.INITIAL_TRIGGER_ENTER, geofencingRequest.getInitialTrigger());
        MatcherAssert.assertThat(geofencingRequest.getGeofences(), CoreMatchers.is(googleGeofences));
    } catch (Exception e) {
        e.printStackTrace();
    }
}