@Test
public void testNoMediaFound() throws Exception {

	Mockito.when(
		_httpServletRequest.getPathInfo()
	).thenReturn(
		RandomTestUtil.randomString()
	);
	Mockito.when(
		(AMRequestHandler<Object>)_amRequestHandlerLocator.locateForPattern(
			Mockito.anyString())
	).thenReturn(
		(AMRequestHandler<Object>)_amRequestHandler
	);
	Mockito.when(
		_amRequestHandler.handleRequest(_httpServletRequest)
	).thenReturn(
		Optional.empty()
	);
	_amServlet.doGet(_httpServletRequest, _httpServletResponse);
	Mockito.verify(
		_httpServletResponse
	).sendError(
		Mockito.eq(HttpServletResponse.SC_NOT_FOUND), Mockito.anyString()
	);
}