MraidController { @VisibleForTesting @Deprecated @NonNull ViewState getViewState() { return mViewState; } MraidController(@NonNull Context context, @NonNull AdConfiguration adConfiguration,
            @NonNull PlacementType placementType); @VisibleForTesting  MraidController(@NonNull Context context, @NonNull AdConfiguration adConfiguration,
            @NonNull PlacementType placementType,
            @NonNull MraidBridge bridge, @NonNull MraidBridge twoPartBridge,
            @NonNull ScreenMetricsWaiter screenMetricsWaiter); void setMraidListener(@Nullable MraidListener mraidListener); void setUseCustomCloseListener(@Nullable UseCustomCloseListener listener); void setDebugListener(@Nullable MraidWebViewDebugListener debugListener); void loadContent(@NonNull String htmlData); void pause(); void resume(); void destroy(); @NonNull FrameLayout getAdContainer(); void loadJavascript(@NonNull String javascript); @NonNull Context getContext();  }
@Test public void constructor_shouldSetStateToLoading() { ViewState state = subject.getViewState(); assertThat(state).isEqualTo(ViewState.LOADING); }
@Test public void bridgeOnReady_shouldSetStateToDefault_shouldCallListener() { bridgeListenerCaptor.getValue().onPageLoaded(); ViewState state = subject.getViewState(); assertThat(state).isEqualTo(ViewState.DEFAULT); verify(mockMraidListener).onLoaded(any(View.class)); }