@Test
public void cancellingDialogReturnsNull() throws Exception {

    Future<CoordinateReferenceSystem> future = showDialog();
    JButtonFixture button = getButton("Cancel");
    button.click();
    CoordinateReferenceSystem crs = retrieveCRS(future);
    assertNull(crs);
}