@Test
public void testDoRunForFactor() {
//setup
FactorCategory fc1st = (FactorCategory) factorTable.getEntries().get(0);
Factor factor12 = (Factor) fc1st.getChildren().get(1);
//run command
new NewFTEntryFactorCommand(factor12, "new foo factor", "2").runWithoutUnicaseCommand();
//check
assertEquals(1, factor12.getChildren().size());
Factor newFactor = (Factor) factor12.getChildren().get(0);
assertEquals("new foo factor", newFactor.getName());
assertEquals("2", newFactor.getPriority());
assertEquals("O1.2.1", newFactor.getNumbering());
assertNotNull(newFactor.getDescription());
assertNotNull(newFactor.getFlexibility());
assertNotNull(newFactor.getChangeability());
assertNotNull(newFactor.getInfluence());
}