### Question:
OnScreenCalculatorWizardStep extends WizardFragment implements CompoundButton.OnCheckedChangeListener { @Nullable CheckBox getCheckbox() { return checkbox; }  @Override void onViewCreated(View root, Bundle savedInstanceState); @Override void onCheckedChanged(CompoundButton buttonView, boolean checked);  }### Answer:
@Test public void testShouldRestoreStateOnRestart() throws Exception { fragment.getCheckbox().setChecked(true); controller.restart(); assertTrue(fragment.getCheckbox().isChecked()); fragment.getCheckbox().setChecked(false); controller.restart(); assertFalse(fragment.getCheckbox().isChecked()); }