public ExpectedException exception = ExpectedException.none();
@Test
public void should_map_an_AssetStorageUnit_to_an_Asset() {
AssetStorageUnit asu = new AssetStorageUnit();
asu.setName("asset-name");
asu.setType(AssetType.js);
asu.setVersion("1.0.0");
asu.setLocations(singletonMap("webapp", "/assets/js/asset-name.js"));
Asset asset = assetMapper.mapToAsset(asu);
assertThat(asset.getName()).isEqualTo("asset-name");
assertThat(asset.getType()).isEqualTo(AssetType.js);
assertThat(asset.getVersion()).isEqualTo("1.0.0");
assertThat(asset.getConfigLocation()).isEqualTo("/assets/js/asset-name.js");