@Test
public void checkRightResourceType() throws Exception {

    doReturn(true).when(sourceTypeSelectorMock).validate();
    when(sourceTypeSelectorMock.getSelectedType()).thenReturn(ScenarioSimulationModel.Type.RULE);
    handler.create(new Package(),
                   "newfile.scesim",
                   mock(NewResourcePresenter.class));
    verify(busyIndicatorViewMock).showBusyIndicator("Saving");
    verify(busyIndicatorViewMock).hideBusyIndicator();
    verify(notificationEventMock).fire(any(NotificationEvent.class));
    verify(newResourceSuccessEventMock).fire(any(NewResourcePresenter.class));
    verify(placeManagerMock).goTo(any(Path.class));
}