FileInfo { public String getFormattedDate() { return applyFormat(this.date); } FileInfo();  FileInfo(String recordType, String tag, String date, String release, String recordCount); String getFormattedDate(); String getDate(); void setDate(String date); String getTag(); void setTag(String tag); String getRelease(); void setRelease(String release); String getRecordCount(); void setRecordCount(String recordCount); String getRecordType(); void setRecordType(String recordType); @Override String toString();  }
@Test public void testGetFormattedDate() { String dateString = "021112"; this.fileInfo.setDate(dateString); assertEquals(this.fileInfo.applyFormat(dateString),this.fileInfo.getFormattedDate()); }