void () { final PyPullUpPresenter sut = configureByClass("Child"); configureParent(); myMocksControl.replay(); sut.launch(); Assert.assertTrue("Presenter did not show parents", myViewConfigCapture.hasCaptured()); final Collection<PyClass> parents = myViewConfigCapture.getValue().getParents(); Assert.assertThat("Wrong list of parents or parents are listed in wrong order", Collections2.transform(parents, CLASS_TO_NAME), Matchers.contains("SubParent1", "SubParent2", "MainParent")); }