### Question:
DhisFhirResourceId implements Serializable { @Nonnull public DhisResourceId getDhisResourceId() throws FhirRepositoryException { final DhisResourceType type = getType(); if ( type == null ) { throw new FhirRepositoryException( "Type of DHIS2 FHIR Resource ID has not been specified." ); } return new DhisResourceId( type, getId() ); } 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 getDhisResourceId() { Assert.assertEquals( new DhisResourceId( DhisResourceType.TRACKED_ENTITY, "a1234567890" ), new DhisFhirResourceId( DhisResourceType.TRACKED_ENTITY, "a1234567890", UUID.randomUUID() ).getDhisResourceId() ); }
@Test( expected = FhirRepositoryException.class ) public void getDhisResourceIdUnqualified() { new DhisFhirResourceId( "a1234567890" ).getDhisResourceId(); }