* requires having a server entity in the database which will be the case with a regular deployment. This method
* persists a server before any tests execute. If the server entity does not exist or cannot be loaded, then the
* storage client will not initialize properly and any tests that depend on the storage client will fail.
*/
private void createTestServer() {
Server server = new Server();
server.setName(TestConstants.RHQ_TEST_SERVER_NAME);
server.setAddress("127.0.0.1");
server.setOperationMode(Server.OperationMode.INSTALLED);
server.setPort(7080);
server.setSecurePort(7443);
server.setVersion(StrippedDownStartupBean.RHQ_VERSION);
serverManager.create(server);
System.setProperty(TestConstants.RHQ_SERVER_NAME_PROPERTY, TestConstants.RHQ_TEST_SERVER_NAME);
}