### Question:
ResourceMapper extends AbstractResourceMapper<Resource, ResourceLookup> { @Override public Resource transform(ResourceLookup lookup) { AbstractResourceBuilder<?> builder = new AbstractResourceBuilder<>(null); buildLookup(builder, lookup); return builder.getResourceBuilder().build(); } ResourceMapper(@NotNull SimpleDateFormat format);  ResourceMapper(@NotNull SimpleDateFormat format, @Nullable ResourceType backupType); @Override Resource transform(ResourceLookup lookup);  }### Answer:
@Test public void should_map_lookup_to_resource() throws Exception { long creationTime = TestConstants.DATE_TIME_FORMAT.parse("2013-10-03 16:32:05").getTime(); long updateTime = TestConstants.DATE_TIME_FORMAT.parse("2013-11-03 16:32:05").getTime(); Resource resource = mMapper.transform(mResourceLookup); assertThat(resource.getCreationDate().getTime(), is(creationTime)); assertThat(resource.getUpdateDate().getTime(), is(updateTime)); assertThat(resource.getDescription(), is("description")); assertThat(resource.getLabel(), is("label")); assertThat(resource.getUri(), is("/my/uri")); assertThat(resource.getResourceType(), is(ResourceType.reportUnit)); assertThat(resource.getVersion(), is(100)); assertThat(resource.getPermissionMask(), is(PermissionMask.NO_ACCESS)); }