@Test
public void testChangingCompleteProgramDefinition() throws IOException {
TrafficLight tl = repo.getByID("0");
final Logic expectedLogic = new Logic("0", 0, new Phase[] {
new Phase(10000, new TLState("rrGGyyyyggrryryr")),
new Phase(15000, new TLState("GGyyrrrrrrGGrGrG")),
new Phase(55000, new TLState("yyrrGGGGGGyyGyGy"))
});
tl.queryChangeCompleteProgramDefinition().setValue(expectedLogic);
tl.queryChangeCompleteProgramDefinition().run();
Program newProgram = tl.queryReadCompleteDefinition().get();