@Test(expected = MethodReconfigured.class) public void methodReconfigured() { // given // when ui.setNavigator(vaadinNavigator); // then }