UllmannState extends State { @Override int[] mapping() { return Arrays.copyOf(m1, m1.length); } UllmannState(IAtomContainer container1, IAtomContainer container2, int[][] g1, int[][] g2,
            EdgeToBondMap bonds1, EdgeToBondMap bonds2, AtomMatcher atomMatcher, BondMatcher bondMatcher);   }
@Test public void mapping() throws Exception { UllmannState state = createBenzeneToNaphthalene(AtomMatcher.forAny(), BondMatcher.forAny()); state.m1[0] = 1; state.m1[1] = 2; assertThat(state.mapping(), is(state.m1)); assertThat(state.mapping(), is(not(sameInstance(state.m1)))); }