### Question:
RotateOptionsPane extends HBox implements TaskParametersBuildStep<RotateParametersBuilder>, RestorableView, ResettableView { @Override public void apply(RotateParametersBuilder builder, Consumer<String> onError) { builder.rotation(rotation.getSelectionModel().getSelectedItem().getKey()); builder.rotationType(rotationType.getSelectionModel().getSelectedItem().getKey()); } RotateOptionsPane(); @Override void resetView(); @Override void apply(RotateParametersBuilder builder, Consumer<String> onError); @Override void saveStateTo(Map<String, String> data); @Override void restoreStateFrom(Map<String, String> data);  }### Answer:
@Test public void validSteps() { RotateParametersBuilder builder = mock(RotateParametersBuilder.class); Consumer<String> onError = mock(Consumer.class); victim.apply(builder, onError); verify(builder).rotation(eq(Rotation.DEGREES_90)); verify(builder).rotationType(eq(PredefinedSetOfPages.ALL_PAGES)); verify(onError, never()).accept(anyString()); }