### Question:
ModDataObjMetaInp extends AbstractIRODSPackingInstruction { public static final ModDataObjMetaInp instanceForModExpDate(String irodsAbsolutePath, String dateString) { if (irodsAbsolutePath == null || irodsAbsolutePath.isEmpty()) { throw new IllegalArgumentException("null or empty irodsAbsolutePath"); } if (dateString == null || dateString.isEmpty()) { throw new IllegalArgumentException("null or empty dateString"); } ModDataObjMetaInp modDataObjMetaInp = new ModDataObjMetaInp(); modDataObjMetaInp.setDateString(dateString); modDataObjMetaInp.setIrodsAbsolutePath(irodsAbsolutePath); modDataObjMetaInp.setMode(Mode.MOD_DATE); return modDataObjMetaInp; } ModDataObjMetaInp(); @Override Tag getTagValue(); static final ModDataObjMetaInp instanceForModExpDate(String irodsAbsolutePath, String dateString); String getIrodsAbsolutePath(); void setIrodsAbsolutePath(String irodsAbsolutePath); String getDateString(); void setDateString(String dateString); Mode getMode(); void setMode(Mode mode); static final String PI_TAG; static final int MOD_DATA_OBJ_META_INP_API_NBR; static final String DATA_EXPIRY_KW; }### Answer:
@Test public void testExpiryDateMod() throws Exception { ModDataObjMetaInp meta = ModDataObjMetaInp.instanceForModExpDate("foo", "11-21-1962"); String tagString = meta.getParsedTags(); Assert.assertNotNull("null tag string", tagString); Assert.assertTrue("did not find objPath", tagString.contains("<objPath>foo</objPath>")); Assert.assertTrue("did not find expDate", tagString.contains("11-21-1962")); }