@Test
public void testWriteToCache() {

	DataTypeBean dtb = new DataTypeBean();
	DataTypeCollection inputBean = null;
	inputBean = new DataTypeCollection("test-type", dtb);
	ResponseCache.CacheIdentifier cacheId = null;
	try {
		cacheId = new ResponseCache.CacheIdentifier("https://not-a-r-eal-url.gov", ResponseCache.CacheIdentifier.CacheType.DATA_TYPE, "Dummy cache data");
		boolean didWrite = inputBean.writeToCache(cacheId);
		assertTrue(didWrite);
	} finally {
		if (cacheId != null) {
			try {
				FileUtils.deleteQuietly(cacheId.getFile());
			} catch (IOException ex) {
				// Not handled
			}
		}
	}
}