@@ -0,0 +1,853 @@
+package uk.gov.register.views;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.Mock;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0Aimport uk.gov.register.resources.RequestContext;%0Aimport uk.gov.register.thymeleaf.ThymeleafView;%0A%0Aimport java.util.Optional;%0A%0Aimport static org.hamcrest.core.IsEqual.equalTo;%0Aimport static org.junit.Assert.assertThat;%0A%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class AnalyticsViewTest %7B%0A    @Mock%0A    RequestContext mockRequestContext;%0A%0A    private final Optional%3CString%3E validCode = Optional.of(%22UA-12345678-1%22);%0A%0A    @Test%0A    public void shouldAnalyticsCode() %7B%0A        ThymeleafView sutView = new ThymeleafView(mockRequestContext, %22%22, null, () -%3E %22test.register.gov.uk%22, () -%3E validCode);%0A        assertThat(sutView.getRegisterTrackingId(), equalTo(Optional.of(%22UA-12345678-1%22)));%0A    %7D%0A%7D%0A

Add ThymeleafView test checking registerTrackingId