### Question:
DhisFhirResourceId implements Serializable { @Nonnull public DhisFhirResourceId toQualified( @Nonnull DhisResourceType type, @Nonnull UUID ruleId ) { return new DhisFhirResourceId( type, getId(), ruleId ); } DhisFhirResourceId( @Nullable DhisResourceType type, @Nonnull String id, @Nullable UUID ruleId );  DhisFhirResourceId( @Nonnull String id ); DhisResourceType getType(); @Nonnull String getId(); UUID getRuleId(); @Nonnull DhisResourceId getDhisResourceId(); boolean isQualified(); @Nonnull DhisFhirResourceId toQualified( @Nonnull DhisResourceType type, @Nonnull UUID ruleId ); @Override boolean equals( Object o ); @Override int hashCode(); @Override @Nonnull String toString(); @Nonnull static String toString( @Nullable DhisResourceType type, @Nonnull String id, @Nullable UUID ruleId ); static boolean isValid( @Nullable String value ); @Nonnull static DhisFhirResourceId parse( @Nonnull String value );  }### Answer:
@Test public void toQualified() { final UUID ruleId = UUID.randomUUID(); Assert.assertEquals( new DhisFhirResourceId( DhisResourceType.TRACKED_ENTITY, "a1234567890", ruleId ), new DhisFhirResourceId( "a1234567890" ).toQualified( DhisResourceType.TRACKED_ENTITY, ruleId ) ); }