@Test
public void showsNotificationDialogWhenLauncherDoesNotHaveWritePermissionsToSystemSettings() {

    // given
    val backlightSwitch = givenDefaultBacklightSwitch();
    val settings = givenSystemSettingsWithoutPermissions();
    val controller = new BacklightSwitch.BacklightController(settings, backlightSwitch);
    // when
    controller.onClick(mock(View.class));
    // then
    then(backlightSwitch.writePermissionRequestDialog()).should().show();
}