@Test
public void addPrimaryGeoJsonSourceAndLayerToStyleShouldAddPrimaryGeoJsonSourceToStyleWhenSourceDoesNotExistOnTheStyle() {

    KujakuMapView spiedKujakuMapView = Mockito.spy(kujakuMapView);
    GeoJsonSource primaryGeoJsonSource = Mockito.mock(GeoJsonSource.class);
    Mockito.doReturn(primaryGeoJsonSource)
            .when(spiedKujakuMapView)
            .getPrimaryGeoJsonSource();
    Mockito.doReturn("the-id")
            .when(primaryGeoJsonSource)
            .getId();
    Mockito.doReturn(null)
            .when(style)
            .getSource(Mockito.anyString());
    ReflectionHelpers.callInstanceMethod(spiedKujakuMapView
            , "addPrimaryGeoJsonSourceAndLayerToStyle"
            , ReflectionHelpers.ClassParameter.from(Style.class, style));
    Mockito.verify(style, Mockito.times(1))
            .addSource(primaryGeoJsonSource);
}