BatchUnmarshaller extends AbstractUnmarshaller { @Override public int score(ODataRequestContext requestContext) { if (isRightMethodForUnmarshall(requestContext.getRequest()) && ODataRequestContextUtil.isBatchOperation(requestContext)) { MediaType contentType = requestContext.getRequest().getContentType(); int score = BATCH_OPERATION_SCORE + super.score(contentType, MediaType.MULTIPART); LOG.debug("Matched MultipartUnmarshaller: {} with score: {}", requestContext.getRequest(), score); return score; } return DEFAULT_SCORE; }  @Override int score(ODataRequestContext requestContext); @Override Object unmarshall(ODataRequestContext requestContext);  }
@Test public void testUnmarshallerScore() { assertTrue(batchUnmarshaller.score(context) > 0); }