// Then simulate a create resource request
final String userSuppliedResourceName = prefix("User Supplied Resource Name");
final String newResourceKey = prefix("Created Resource Key");
final int serverResourceId = firstDiscoverySyncInfo.getTopLevelServerIds().iterator().next();
executeInTransaction(false, new TransactionCallback() {
@Override
public void execute() throws Exception {
Resource serverResource = getEntityManager().find(Resource.class, serverResourceId);
CreateResourceHistory createResourceHistory = new CreateResourceHistory(serverResource, serviceType1,
subjectManager.getOverlord().getName(), new Configuration());