//setup
FactorCategory fc1st = (FactorCategory) factorTable.getEntries().get(0);
Factor factor12 = (Factor) fc1st.getChildren().get(1);
//run command
new NewFTEntryCategoryCommand(factor12, "new foo subcategory").runWithoutUnicaseCommand();
//check
assertEquals(1, factor12.getChildren().size());
FactorCategory newFactorCategory = (FactorCategory) factor12.getChildren().get(0);
assertEquals("new foo subcategory", newFactorCategory.getName());