@Test
public void testLogExceptionsOnlyFalse() throws Throwable {

	expectedException.expect(SearchException.class);
	expectedException.expectMessage("some other random message");
	ElasticsearchExceptionHandler elasticsearchExceptionHandler =
		new ElasticsearchExceptionHandler(_log, false);
	elasticsearchExceptionHandler.logOrThrow(
		new SearchException("some other random message"));
}