if (ONLY_M2) {
return;
}
Response response = get(MediaType.TEXT_ALL);
sysOutEntityIfError(response);
Representation representation = response.getEntity();
final MediaType mediaType = representation.getMediaType();
assertEquals(Status.SUCCESS_OK, response.getStatus());
assertTrue(mediaType.equals(MediaType.TEXT_PLAIN, true)
|| mediaType.equals(MediaType.TEXT_HTML, true));
response = get(MediaType.TEXT_PLAIN);
sysOutEntityIfError(response);
assertTrue(response.getStatus().isSuccess());
representation = response.getEntity();
assertEquals(SimpleTrain.RERP_PLAIN_TEXT, representation.getText());
assertEqualMediaType(MediaType.TEXT_PLAIN, representation);
}