@Test
public void testSupportedTypes() throws ContentNegotiatorException, IllegalArgumentException {

  assertTrue(ContentNegotiator.isSupported(ContentType.create("a/b"), 
      createCustomContentTypeSupport("a/b"), RepresentationType.ENTITY));
  assertFalse(ContentNegotiator.isSupported(ContentType.create("a/b"), 
      createCustomContentTypeSupport("x/y"), RepresentationType.ENTITY));
  assertTrue(ContentNegotiator.isSupported(ContentType.create("a/b"), 
      createCustomContentTypeSupport("a/b"), RepresentationType.BATCH));
  assertTrue(ContentNegotiator.isSupported(ContentType.create("a/b"), 
      createCustomContentTypeSupport("a/b"), RepresentationType.BINARY));
}