@Test
public void canOverrideViewCreation() {

    final FrameLayout otherView = new FrameLayout(activity);
    yellowBoxDelegate = spy(new YellowBoxDelegate());
    ViewController myController = new ViewController(activity, "vc", yellowBoxDelegate, new Options()) {
        @Override
        protected FrameLayout createView() {
            return otherView;
        }
        @Override
        public void sendOnNavigationButtonPressed(String buttonId) {
        }
    };
    assertThat(myController.getView()).isEqualTo(otherView);
}