@Test
public void setCursorOnProfilerLayeredPane() {

  JButton button = new JButton();
  JPanel panel = new JPanel();
  panel.add(button);
  ProfilerLayeredPane layeredPane = new ProfilerLayeredPane(panel);
  Cursor cursor = Cursor.getPredefinedCursor(Cursor.HAND_CURSOR);
  Container cursorSettingContainer = ProfilerLayeredPane.setCursorOnProfilerLayeredPane(
    button, cursor);
  assertThat(layeredPane).isSameAs(cursorSettingContainer);
  assertThat(cursor).isEqualTo(layeredPane.getCursor());
}