ServerConfigurationPayload extends Payload implements PersistentPayload, Serializable { public @NonNull List<ServerInfo> getServerConfig() { return serverConfig; } ServerConfigurationPayload(final @NonNull List<ServerInfo> serverConfig); @NonNull List<ServerInfo> getServerConfig(); @Override int size(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testSerialization() { ServerConfigurationPayload expected = new ServerConfigurationPayload(Arrays.asList(new ServerInfo("1", true), new ServerInfo("2", false))); ServerConfigurationPayload cloned = (ServerConfigurationPayload) SerializationUtils.clone(expected); assertEquals("getServerConfig", expected.getServerConfig(), cloned.getServerConfig()); }