@Test
public void testCreate() {

    final String fileName = "fileName";
    final Package pkg = mock( Package.class );
    final Path resourcesPath = PathFactory.newPath( "resources",
                                                    "default://project/src/main/resources" );
    when( pkg.getPackageMainResourcesPath() ).thenReturn( resourcesPath );
    handler.create( pkg,
                    fileName,
                    newResourcePresenter );
    verify( busyIndicatorView,
            times( 1 ) ).hideBusyIndicator();
    verify( newResourcePresenter,
            times( 1 ) ).complete();
    verify( mockNotificationEvent,
            times( 1 ) ).fire( any( NotificationEvent.class ) );
    verify( newResourceSuccessEventMock,
            times( 1 ) ).fire( any( NewResourceSuccessEvent.class ) );
    verify( placeManager,
            times( 1 ) ).goTo( pathCaptor.capture() );
    assertEquals( "default://project/src/main/resources/fileName." + resourceType.getSuffix(),
                  pathCaptor.getValue().toURI() );
    verify( service,
            times( 1 ) ).create( eq( resourcesPath ),
                                 eq( fileName + "." + resourceType.getSuffix() ),
                                 any( GuidedDecisionTableEditorGraphModel.class ),
                                 any( String.class ) );
}