@Test
public void testAdd_NewIteration() throws Exception{
log.info("\nTestAdd_NewIteration\n");
//Add to first addAllocation
IDecisionMaker decisionMaker = new DefaultDecisionMaker(0,1);
SimTLEngine engine = new SimTLEngine(
new TemplateMockup().getTemplate(),
URI.createFileURI(new File("output/templateInstance.java").getAbsolutePath()),
decisionMaker);
log.info("Ready");
IModel instance = engine.getTemplateInstance();
Resource instanceResource = instance.getModelResource();
EObject javaRoot = instanceResource.getContents().get(0);
EObject javaClass = javaRoot.eContents().get(0);
EStructuralFeature memberFeature = javaClass.eClass().getEStructuralFeature("members");
List<EObject> classMembers = (List<EObject>)javaClass.eGet(memberFeature);