@Test public void testAddToWindow() throws Exception {

  // given
  final View iconMock = mock(View.class);
  setInternalState(magnet, "iconView", iconMock);
  // when
  magnet.addToWindow();
  // then
  verify(windowManagerMock).addView(iconMock, paramsMock);
}