@Test(expected = MraidCommandException.class)
public void lockOrientation_withApplicationContext_shouldThrowMraidCommandException() throws MraidCommandException, PackageManager.NameNotFoundException {

    setMockActivityInfo(true, ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED,
            ActivityInfo.CONFIG_ORIENTATION | ActivityInfo.CONFIG_SCREEN_SIZE);
    subject = new MraidController(
            activity.getApplicationContext(), mockAdConfiguration, PlacementType.INLINE,
            mockBridge, mockTwoPartBridge, mockScreenMetricsWaiter);
    subject.lockOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
}