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

    Activity activity = Robolectric.buildActivity(Activity.class).create().get();
    View mockView = mock(View.class);
    when(mockView.isHardwareAccelerated()).thenReturn(true);
    when(mockView.getLayerType()).thenReturn(View.LAYER_TYPE_HARDWARE);
    assertThat(subject.isInlineVideoAvailable(activity, mockView)).isFalse();
}