//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());