@Test
public void shouldSwitchWiFiStateOnOnClick() {

    // given: enabled wifi
    val wifiSwitch = givenWifiSwitch();
    val wifiToasts = givenWifiToasts();
    val wifiManager = givenWifiManagerWithWifiEnabled();
    val wifiController = new WifiSwitch.WifiController(wifiSwitch, wifiToasts, wifiManager);
    // when
    wifiController.onClick(mock(View.class));
    // then: wifi should be disabled
    then(wifiManager).should().setWifiEnabled(false);
    then(wifiToasts.newToast(false)).should().show();
    then(wifiSwitch).should().setImageBasedOn(false);
}