@Test
public void onResume() throws Exception {

    when(preferenceHelper.getBoolean(eq("DisableTurnScreen"))).thenReturn(false);
    when(preferenceHelper.getBoolean(eq("DisableAutoScreenRotation"))).thenReturn(true);
    presenter.onResume();
    verify(view).setKeepScreen(eq(false));
    verify(view).setCurrentOrientation(eq(true));
}