@@ -0,0 +1,935 @@
+package uk.gov.register.functional;%0A%0Aimport org.jsoup.Jsoup;%0Aimport org.jsoup.nodes.Document;%0Aimport org.jsoup.select.Elements;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport javax.ws.rs.core.MediaType;%0Aimport javax.ws.rs.core.Response;%0A%0Aimport static org.hamcrest.CoreMatchers.equalTo;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0A%0Apublic class AssetsBundleCustomErrorHandlerTest extends FunctionalTestBase %7B%0A    @Test%0A    public void displays404pageForNonexistentAssets() %7B%0A        Response response = getRequest(%22/assets/not-an-assets%22);%0A%0A        assertThat(response.getStatus(), equalTo(404));%0A        assertThat(response.getMediaType().isCompatible(MediaType.TEXT_HTML_TYPE), equalTo(true));%0A%0A        Document doc = Jsoup.parse(response.readEntity(String.class));%0A        Elements notFoundHeader = doc.select(%22main h1%22);%0A        Assert.assertThat(notFoundHeader.first().text(), equalTo(%22Page not found%22));%0A    %7D%0A%7D%0A

Add test for handling not found assets