/** test for correct data being added when two transitions lead to a new state. */
@Test
public final void testCreateLabelToStateMap4()
{
Map<Label,List<CmpVertex>> trans = new HashMap<Label,List<CmpVertex>>();
List<CmpVertex> A=Arrays.asList(new CmpVertex[]{new StringVertex("A")}),
B=Arrays.asList(new CmpVertex[]{new StringVertex("B")}),
D=Arrays.asList(new CmpVertex[]{new StringVertex("D")});
trans.put(lb("a"), A);trans.put(lb("b"), A);trans.put(lb("c"), B);
Map<Label,List<CmpVertex>> expected = new HashMap<Label,List<CmpVertex>>();expected.putAll(trans);expected.put(lb("e"),D);expected.put(lb("f"), D);
assertSame(trans,createLabelToStateMap(labelList(new String[] {"f","e"}), new StringVertex("D"),trans));
assertEquals(expected,trans);
}