Source { public String getIdentity() { return identity; } Source(String name, SourceType sourceType,
                String clusterName, String sourceUrl,
                String identity, Long sourceExtractIteration);  Source(String name, SourceType sourceType, String clusterName,
                String sourceUrl, String identity, Long sourceExtractIteration,
                Boolean sourceTemplate);  Source(String name, SourceType sourceType,
                String clusterName, String sourceUrl, Long sourceExtractIteration); String getName(); SourceType getSourceType(); String getClusterName(); String getSourceUrl(); String getIdentity(); Long getSourceExtractIteration(); @Override boolean equals(Object o); @Override int hashCode(); Boolean getSourceTemplate(); void setSourceTemplate(Boolean sourceTemplate);  }
@Test public void testBasic() { String sourceName = "mySource"; String clusterName = "myCluster"; Source src = new Source(sourceName, SourceType.NONE, clusterName, "http: assertEquals(MD5IdGenerator.generateIdentity(clusterName, sourceName), src.getIdentity()); assertEquals(src, new Source(sourceName, SourceType.HDFS, clusterName, "http: }