@TargetApi(11)
@Test
public void isInlineVideoAvailable_whenViewsAreNotHardwareAccelerated_whenWindowIsHardwareAccelerated_whenApiLevelIsAtLeastHoneycombMR1_shouldReturnFalse() throws Exception {

    Activity activity = Robolectric.buildActivity(Activity.class).create().get();
    activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);
    View mockView = mock(View.class);
    when(mockView.isHardwareAccelerated()).thenReturn(false);
    when(mockView.getLayerType()).thenReturn(View.LAYER_TYPE_HARDWARE);
    assertThat(subject.isInlineVideoAvailable(activity, mockView)).isFalse();
}