@Test
public void onToggle() throws Exception {

    // Given
    CompoundButton compoundButton = mock(CompoundButton.class);
    CompoundButton.OnCheckedChangeListener listener = mock(CompoundButton.OnCheckedChangeListener.class);
    // When
    BlueTapeDsl
            .onToggle(listener)
            .bind(compoundButton);
    // Then
    verify(compoundButton).setOnCheckedChangeListener(listener);
}