@Test
public void shouldSetCreatedStatusAndLocationWithAppPath() throws Exception {

	when(config.getApplicationPath()).thenReturn("http://myapp.com");
	status.created("/newResource");
	verify(response).setStatus(201);
	verify(response).addHeader("Location", "http://myapp.com/newResource");
}