DeleteEntries implements Serializable { public long getFromIndex() { return fromIndex; } DeleteEntries(final long fromIndex); long getFromIndex(); @Override String toString();  }
@Test public void testSerialization() { DeleteEntries expected = new DeleteEntries(5); DeleteEntries cloned = (DeleteEntries) SerializationUtils.clone(expected); assertEquals("getFromIndex", expected.getFromIndex(), cloned.getFromIndex()); }