DefaultDomain implements Domain { @Override @NotNull public String name() { return this.origin.name().trim(); } DefaultDomain(@NotNull final String name, @NotNull final String key,
        @NotNull final String secret, @NotNull final String bucket,
        @NotNull final String region, @NotNull final String syslog);   DefaultDomain(@NotNull final Domain domain); @Override String toString(); @Override @NotNull String name(); @Override @NotNull String key(); @Override @NotNull String secret(); @Override @NotNull String bucket(); @Override @NotNull String region(); @Override String syslog();  }
@Test public void reproducesProperties() throws Exception { final Domain domain = new DomainMocker().mock(); MatcherAssert.assertThat( new DefaultDomain(domain).name(), Matchers.equalTo(domain.name()) ); }