### Question:
ResolvedRuleGroup implements Comparable<ResolvedRuleGroup> { @Override public int compareTo(ResolvedRuleGroup o) { return ComparisonChain.start() .compare(order, o.order, Ordering.natural().nullsLast()) .compare(relatedSubject.getValue(), o.relatedSubject.getValue(), Ordering.natural().nullsLast()) .result(); } ResolvedRuleGroup(@Nonnull RuleGroup ruleGroup);  ResolvedRuleGroup(List<ResolvedRule> rules, Integer order, TenantId contractTenantId, ContractId contractId,
            SubjectName subject); ImmutableSortedSet<ResolvedRule> getRules(); Integer getOrder(); TenantId getContractTenantId(); ContractId getContractId(); SubjectName getRelatedSubject(); RuleGroupKey getRelatedRuleGroupKey(); @Override int hashCode(); @Override boolean equals(Object obj); @Override int compareTo(ResolvedRuleGroup o);  }### Answer:
@Test public void testCompareTo_noOrder() { ResolvedRuleGroup resolvedRuleGroup1 = new ResolvedRuleGroup(RULE_GROUP1); ResolvedRuleGroup resolvedRuleGroup2 = new ResolvedRuleGroup(RULE_GROUP2); Assert.assertEquals(-1, resolvedRuleGroup1.compareTo(resolvedRuleGroup2)); }