public void testServiceCreateDelete() throws Exception {
if (!TEST_CREATE) {
return;
}
ServiceConfig config = new ServiceConfig(TEST_NAME);
config.setStartType(ServiceConfig.START_MANUAL);
config.setDisplayName("My Test Service");
config.setDescription("A Description of " + config.getDisplayName());
config.setPath("C:\\Program Files\\My Test 1.0\\mytest.exe");
Service.create(config);
}