@Test
public void testSetApplicationForCommand() throws GenieException {
final Command command2 = this.service.getCommand(COMMAND_2_ID);
Assert.assertNull(command2.getApplication());
final Application app = this.appService.getApplication(APP_1_ID);
final Set<Command> preCommands
= this.appService.getCommandsForApplication(APP_1_ID);
Assert.assertEquals(1, preCommands.size());
Assert.assertEquals(COMMAND_1_ID, preCommands.iterator().next().getId());