RuleIdImpl implements RuleId { static RuleId fromRuleId(final RuleId toConvert) { return fromValues(toConvert.getSpecification(), toConvert.getClause(), toConvert.getTestNumber()); } private  RuleIdImpl(); private  RuleIdImpl(final Specification specification, final String clause,
            final int testNumber); @Override Specification getSpecification(); @Override String getClause(); @Override int getTestNumber(); @Override final int hashCode(); @Override final boolean equals(Object obj); @Override final String toString();  }
@Test public final void testFromRuleId() { RuleId ruleId = RuleIdImpl.fromRuleId(RuleIdImpl.defaultInstance()); RuleId defaultInstance = Profiles.defaultRuleId(); assertFalse(ruleId == defaultInstance); assertTrue(ruleId.equals(defaultInstance)); }