FailoverPersistenceStoreModel implements Serializable { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; FailoverPersistenceStoreModel other = (FailoverPersistenceStoreModel) obj; if (!Arrays.equals(siddhiSnapshot, other.siddhiSnapshot)) return false; if (streamStatuses == null) { if (other.streamStatuses != null) return false; } else if (!streamStatuses.equals(other.streamStatuses)) return false; return true; } FailoverPersistenceStoreModel(Map<String, StreamStatusDTO> streamStatuses, byte[] siddhiSnapshot);  FailoverPersistenceStoreModel(byte[] bytes); Map<String, StreamStatusDTO> getStreamStatuses(); byte[] getSiddhiSnapshot(); byte[] FailOverPersistenceModelToByte(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testEquals() throws Exception { FailoverPersistenceStoreModel persistenceModel2= new FailoverPersistenceStoreModel(persistenceModel.getStreamStatuses(), null); assertTrue("Given object is not equals", persistenceModel.equals(persistenceModel2)); }