FinishedTriggersBitSet implements FinishedTriggers { @Override public FinishedTriggersBitSet copy() { return new FinishedTriggersBitSet((BitSet) bitSet.clone()); } private  FinishedTriggersBitSet(BitSet bitSet); static FinishedTriggersBitSet emptyWithCapacity(int capacity); static FinishedTriggersBitSet fromBitSet(BitSet bitSet); BitSet getBitSet(); @Override boolean isFinished(ExecutableTriggerStateMachine trigger); @Override void setFinished(ExecutableTriggerStateMachine trigger, boolean value); @Override void clearRecursively(ExecutableTriggerStateMachine trigger); @Override FinishedTriggersBitSet copy();  }
@Test public void testCopy() throws Exception { FinishedTriggersBitSet finishedSet = FinishedTriggersBitSet.emptyWithCapacity(10); assertThat(finishedSet.copy().getBitSet(), not(theInstance(finishedSet.getBitSet()))); }