WebAirMapViewBuilder implements AirMapViewBuilder<WebViewMapFragment, AirMapType> { @Override public WebViewMapFragment build() { if (options == null) { options = new GoogleWebMapType(); } if (options instanceof GoogleWebMapType) { return GoogleWebViewMapFragment.newInstance(options); } if (options instanceof GoogleChinaMapType) { return GoogleChinaWebViewMapFragment.newInstance(options); } if (options instanceof LeafletMapType) { return LeafletWebViewMapFragment.newInstance(options); } return null; }  @Override AirMapViewBuilder<WebViewMapFragment, AirMapType> withOptions(AirMapType options); @Override WebViewMapFragment build();  }
@Test @Ignore("Can't really test this right now since we can' mock the Bundle") public void shouldReturnGoogleWebAirMapViewByDefault() { WebAirMapViewBuilder factory = new WebAirMapViewBuilder(); assertThat(factory.build(), instanceOf(GoogleWebViewMapFragment.class)); }