private UserResource userResource;
private Initialize initialize;
private DocumentCreator documentCreator;
public void setUp() throws Exception {
initialize = new Initialize("registry-derby.sql");
initialize.initializeDB();
gatewayResource = (GatewayResource) ResourceUtils.getGateway(ServerSettings.getSystemUserGateway());
workerResource = (WorkerResource) ResourceUtils.getWorker(gatewayResource.getGatewayName(), ServerSettings.getDefaultUser());
userResource = new UserResource();
userResource.setUserName(ServerSettings.getDefaultUser());