PreviousNextButtons extends SegmentedButton { @VisibleForTesting ToggleButton getNextButton() { return nextButton; } @SuppressWarnings("PMD.MissingStaticMethodInNonInstantiatableClass")  PreviousNextButtons(PreviousNext switchable);   }
@Test @Ignore("Fails everywhere") public void testClickNext() { clickOn(previousNextButtons.getNextButton()); WaitForAsyncUtils.waitForFxEvents(); assertEquals("Next should have been called once", 1, previousNext.index); verifyThat("." + PreviousNextButtons.NEXT_BUTTON_STYLE_CLASS, (ToggleButton t) -> !t .isSelected()); }