@@ -0,0 +1,2135 @@
+package com.sdoward.rxgooglemap;%0A%0Aimport com.google.android.gms.maps.*;%0A%0Aimport org.junit.*;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.*;%0Aimport org.powermock.core.classloader.annotations.PrepareForTest;%0Aimport org.powermock.modules.junit4.PowerMockRunner;%0A%0Aimport rx.observers.TestSubscriber;%0A%0Aimport static org.mockito.Mockito.verify;%0A%0A@RunWith(PowerMockRunner.class)%0A@PrepareForTest(GoogleMap.class)%0Apublic class MapObservableProviderTest %7B%0A%0A    @Mock%0A    private MapFragment mapFragment;%0A    @Mock%0A    private SupportMapFragment supportMapFragment;%0A    @Mock%0A    private MapView mapView;%0A    @Mock%0A    private GoogleMap googleMap;%0A    @Captor%0A    private ArgumentCaptor%3COnMapReadyCallback%3E argumentCaptor;%0A%0A    @Test%0A    public void shouldReturnMapFromFragment() %7B%0A        TestSubscriber%3CGoogleMap%3E subscriber = new TestSubscriber%3C%3E();%0A        new MapObservableProvider(mapFragment)%0A                .getMapReadyObservable()%0A                .subscribe(subscriber);%0A        verify(mapFragment).getMapAsync(argumentCaptor.capture());%0A        argumentCaptor.getValue().onMapReady(googleMap);%0A        subscriber.assertNoErrors();%0A        subscriber.assertValue(googleMap);%0A    %7D%0A%0A    @Test%0A    public void shouldReturnMapFromSupportFragment() %7B%0A        TestSubscriber%3CGoogleMap%3E subscriber = new TestSubscriber%3C%3E();%0A        new MapObservableProvider(supportMapFragment)%0A                .getMapReadyObservable()%0A                .subscribe(subscriber);%0A        verify(supportMapFragment).getMapAsync(argumentCaptor.capture());%0A        argumentCaptor.getValue().onMapReady(googleMap);%0A        subscriber.assertNoErrors();%0A        subscriber.assertValue(googleMap);%0A    %7D%0A%0A    @Test%0A    public void shouldReturnMapFromView() %7B%0A        TestSubscriber%3CGoogleMap%3E subscriber = new TestSubscriber%3C%3E();%0A        new MapObservableProvider(mapView)%0A                .getMapReadyObservable()%0A                .subscribe(subscriber);%0A        verify(mapView).getMapAsync(argumentCaptor.capture());%0A        argumentCaptor.getValue().onMapReady(googleMap);%0A        subscriber.assertNoErrors();%0A        subscriber.assertValue(googleMap);%0A    %7D%0A%0A%7D

Add tests for receiving googleMap