}
@Test
public void testODataExceptionWithoutText() throws Exception {
final String text = null;
final Exception exception = new ODataException(text);
final Response response = exceptionMapper.toResponse(exception);
assertNotNull(response);
final String errorMessage = StringHelper.inputStreamToString((InputStream) response.getEntity());
assertXpathExists("/a:error/a:message", errorMessage);