JButtonFixture button = windowFixture.toolBar().button(btnName);
button.click();
windowFixture.robot.waitForIdle();
CursorTool cursorTool = ((JMapFrame) windowFixture.component()).getMapPane().getCursorTool();
if (expectedToolClass == null) {
assertNull(cursorTool);
} else {
assertEquals(expectedToolClass, cursorTool.getClass());
}
}