DomainInfo { public String getDomainVersion() { return this.domainVersion; } DomainInfo(final String domain, final String domainVersion); String getDomain(); String getDomainVersion(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString();  }
@Test public void testGetDomainVersion() { final String expected = DOMAIN_VERSION; final DomainInfo domainInfo = new DomainInfo(DOMAIN_DISTRIBUTION_AUTOMATION, DOMAIN_VERSION); final String actual = domainInfo.getDomainVersion(); assertThat(actual).isEqualTo(expected); }