@Test
public void shouldSwitchBrightnessToMaxValueIfCurrentIsMinimalAndPreviousStateIsNotPresent() {

    // given: brightness controller which does not have previous state
    val backlightSwitch = givenDefaultBacklightSwitch();
    val settings = givenSettingsWithBrightnessValue(BRIGHTNESS_MIN);
    val controller = new BacklightSwitch.BacklightController(settings, backlightSwitch);
    // when
    controller.onClick(mock(View.class));
    // then
    then(settings).should().enableManualBrightnessControl();
    then(settings).should().setScreenBrightnessTo(BRIGHTNESS_MAX);
    then(backlightSwitch).should().setImageBasedOn(BRIGHTNESS_MAX);
}