@Test
public void onAttachedToWindow_notInEditMode_presenterTakeView() throws Exception {

  when(layout.isInEditMode()).thenReturn(false);
  layout.onAttachedToWindow();
  verify(presenter).takeView(layout);
}