@Test
 public void lastVerifiedAndCacheTokenApply() {
   final DateTime now = DateTime.now();
   final String cacheToken = "foo-bar";
   NestedAttributesMap attributes =
       new NestedAttributesMap(P_ATTRIBUTES, Maps.<String, Object>newHashMap());
   Asset asset = mock(Asset.class);
   when(asset.attributes()).thenReturn(attributes);
   CacheInfo cacheInfo = new CacheInfo(now, cacheToken);
   CacheInfo.applyToAsset(asset, cacheInfo);
   assertThat(
       asset.attributes().child(CacheInfo.CACHE).get(CacheInfo.LAST_VERIFIED, Date.class),
       equalTo(now.toDate()));
   assertThat(
       asset.attributes().child(CacheInfo.CACHE).get(CacheInfo.CACHE_TOKEN, String.class),
       equalTo(cacheToken));
 }