task.setName("foo task");
task.setType(IntentionalElementType.TASK);
project.addModelElement(task);
// add a product FactorTable
FactorTable pFactorTable = EMFfitModelFactory.eINSTANCE.createFactorTable();
pFactorTable.setType(CategoryType.PRODUCT);
project.addModelElement(pFactorTable);
// run command for product table
new SetFactorTableProductFactorsFromURNCommand(pFactorTable)
.runWithoutUnicaseCommand();
//check results
assertEquals(3, pFactorTable.getEntries().size());
assertEquals("P1", pFactorTable.getEntries().get(0).getNumbering());
assertEquals("P2", pFactorTable.getEntries().get(1).getNumbering());
assertEquals("P3", pFactorTable.getEntries().get(2).getNumbering());
}