### Question:
MetaDataAndDomainData extends IRODSDomainObject { public AvuData asAvu() { return AvuData.instance(this.avuAttribute, this.avuValue, this.avuUnit); } private  MetaDataAndDomainData(final MetadataDomain metadataDomain, final String domainObjectId,
			final String domainObjectUniqueName, final long size, final Date createdAt, final Date modifiedAt,
			final int avuId, final String avuAttribute, final String avuValue, final String avuUnit); static MetaDataAndDomainData instance(final MetadataDomain metadataDomain, final String domainObjectId,
			final String domainObjectUniqueName, final int avuId, final String avuAttribute, final String avuValue,
			final String avuUnit); static MetaDataAndDomainData instance(final MetadataDomain metadataDomain, final String domainObjectId,
			final String domainObjectUniqueName, final long size, final Date createdAt, final Date modifiedAt,
			final int avuId, final String avuAttribute, final String avuValue, final String avuUnit); @Override String toString(); String getDomainObjectId(); String getDomainObjectUniqueName(); String getAvuAttribute(); String getAvuValue(); String getAvuUnit(); MetadataDomain getMetadataDomain(); int getAvuId(); long getSize(); Date getCreatedAt(); Date getModifiedAt(); @Override MetaDataAndDomainData clone(); AvuData asAvu();  }### Answer:
@Test public void testAsAvu() throws Exception { MetaDataAndDomainData data = MetaDataAndDomainData.instance(MetadataDomain.COLLECTION, "id", "foo", 1, new Date(), new Date(), 1, "attrib", "value", "unit"); AvuData actual = data.asAvu(); Assert.assertEquals(data.getAvuAttribute(), actual.getAttribute()); Assert.assertEquals(data.getAvuValue(), actual.getValue()); Assert.assertEquals(data.getAvuUnit(), actual.getUnit()); }