Impelment getAllDomainMetadata correctly
Test for getAllDomainMetadata