@Test
public void shouldSetMovedPermanentlyStatus() throws Exception {

	when(config.getApplicationPath()).thenReturn("http://myapp.com");
	status.movedPermanentlyTo("/newURL");
	verify(response).setStatus(301);
	verify(response).addHeader("Location", "http://myapp.com/newURL");
}