ReferenceImpl implements Reference { static Reference fromValues(final String specification, final String clause) { return new ReferenceImpl(specification, clause); } private  ReferenceImpl(); private  ReferenceImpl(final String specification, final String clause); @Override String getSpecification(); @Override String getClause(); @Override final int hashCode(); @Override final boolean equals(Object obj); @Override final String toString();  }
@Test public final void testFromValues() { Reference reference = Profiles.referenceFromValues("specification", "clause"); Reference defaultInstance = Profiles.defaultReference(); assertFalse(reference == defaultInstance); assertTrue(reference.equals(defaultInstance)); }