AbortSlicing implements Serializable { Identifier getIdentifier() { return identifier; } AbortSlicing(final Identifier identifier); @Override String toString();  }
@Test public void testSerialization() { AbortSlicing expected = new AbortSlicing(new StringIdentifier("test")); AbortSlicing cloned = (AbortSlicing) SerializationUtils.clone(expected); assertEquals("getIdentifier", expected.getIdentifier(), cloned.getIdentifier()); }