/** Tests the copying process for ignored states. */
@Test
public void testLayoutOptions6()
{
final LayoutOptions options = new LayoutOptions();
Assert.assertNull(options.ignoredStates);
Synapse.StatechumProcess.setStateNamesToBeIgnored(options, new OtpErlangList(new OtpErlangObject[]{new OtpErlangAtom("b"),new OtpErlangAtom("a")}));
Assert.assertNotNull(options.ignoredStates);
Assert.assertEquals(2,options.ignoredStates.size());
Iterator<String> ignoreIterator = options.ignoredStates.iterator();
Assert.assertEquals("b",ignoreIterator.next());Assert.assertEquals("a",ignoreIterator.next());
LayoutOptions copy = options.copy();
Synapse.StatechumProcess.setStateNamesToBeIgnored(options, new OtpErlangList(new OtpErlangObject[]{new OtpErlangAtom("c")}));
Assert.assertNotNull(options.ignoredStates);
Assert.assertEquals(3,options.ignoredStates.size());
ignoreIterator = options.ignoredStates.iterator();
Assert.assertEquals("b",ignoreIterator.next());Assert.assertEquals("c",ignoreIterator.next());Assert.assertEquals("a",ignoreIterator.next());