presenter = new ModulesTree( clientFactory ,eventBus, AuthorPerspective.AUTHOR_PERSPECTIVE);
}
private void setUpUserCapabilities( boolean canMakeNewAssets ) {
UserCapabilities userCapabilities = mock( UserCapabilities.class );
UserCapabilities.INSTANCE = userCapabilities;
when( userCapabilities.hasCapability( Capability.SHOW_CREATE_NEW_ASSET ) ).thenReturn( canMakeNewAssets );
}