// Restart the server ResourceComponent so it picks up the changes we just made to the plugin config.
InventoryManager inventoryManager = this.pluginContainer.getInventoryManager();
inventoryManager.deactivateResource(getServerResource());
ResourceContainer serverContainer = inventoryManager.getResourceContainer(getServerResource());
inventoryManager.activateResource(getServerResource(), serverContainer, true);
// Finally restart it using the Start op and make sure it has come back up.
invokeOperationAndAssertSuccess(getServerResource(), START_OPERATION_NAME, null);
avail = getAvailability(getServerResource());
assertEquals(avail, AvailabilityType.UP);