void (@NotNull final String className) { try { final PyPullUpPresenter sut = configureByClass(className); myMocksControl.replay(); sut.launch(); } catch (final IllegalArgumentException ignored) { return; } Assert .fail("Presenter should throw exception, but it returned list of parents instead: " + myViewConfigCapture.getValue().getParents()); }