@Test
public void shouldDisplayLoginActivityIfDeviceAdminPermissionIsEnabled() {

    when(devicePolicyManager.isAdminActive((ComponentName) anyObject())).thenReturn(true);
    activityController.create();
    verify(devicePolicyManager).isAdminActive((ComponentName) anyObject());
    verify(deviceAdminActivity).displayLoginScreen();
}