### Question:
State { String getName () { return mLabel.isEmpty () ? mName : mLabel + " (" + mName + ")"; } State(String name, DirectedGraph graph);   }### Answer:
@Test public void testGetNameWithoutLabel () { assertEquals (STATE_NAME, new State (STATE_NAME, null).getName ()); }
@Test public void testGetNameWithLabel () { String LABEL = "a label"; State state = new State (STATE_NAME, null); state.mLabel = LABEL; assertTrue (state.getName ().startsWith (LABEL)); }