ODataImpl extends OData { @Override public EdmAssistedSerializer createEdmAssistedSerializer(final ContentType contentType) throws SerializerException { if (contentType != null && contentType.isCompatible(ContentType.APPLICATION_JSON)) { return new EdmAssistedJsonSerializer(contentType); } throw new SerializerException("Unsupported format: " + ((contentType != null) ? contentType.toContentTypeString() : null), SerializerException.MessageKeys.UNSUPPORTED_FORMAT, ((contentType != null) ? contentType.toContentTypeString() : null)); }  @Override ODataSerializer createSerializer(final ContentType contentType); @Override ODataSerializer createSerializer(final ContentType contentType, 
      final List<String> versions); @Override FixedFormatSerializer createFixedFormatSerializer(); @Override EdmAssistedSerializer createEdmAssistedSerializer(final ContentType contentType); @Override EdmAssistedSerializer createEdmAssistedSerializer(final ContentType contentType, 
		  List<String> versions); @Override EdmDeltaSerializer createEdmDeltaSerializer(final ContentType contentType, final List<String> versions); @Override ODataHttpHandler createHandler(final ServiceMetadata serviceMetadata); @Override ODataHandler createRawHandler(ServiceMetadata serviceMetadata); @Override ServiceMetadata createServiceMetadata(final CsdlEdmProvider edmProvider,
      final List<EdmxReference> references); @Override ServiceMetadata createServiceMetadata(final CsdlEdmProvider edmProvider,
      final List<EdmxReference> references, final ServiceMetadataETagSupport serviceMetadataETagSupport); @Override FixedFormatDeserializer createFixedFormatDeserializer(); @Override UriHelper createUriHelper(); @Override ODataDeserializer createDeserializer(final ContentType contentType); @Override ODataDeserializer createDeserializer(final ContentType contentType,
      ServiceMetadata metadata); @Override EdmPrimitiveType createPrimitiveTypeInstance(final EdmPrimitiveTypeKind kind); @Override ETagHelper createETagHelper(); @Override Preferences createPreferences(final Collection<String> preferHeaders); @Override DebugResponseHelper createDebugResponseHelper(final String debugFormat); @Override ODataDeserializer createDeserializer(ContentType contentType, List<String> versions); @Override ODataDeserializer createDeserializer(ContentType contentType, ServiceMetadata metadata, List<String> versions);  }
@Test(expected=SerializerException.class) public void edmAssitedSerializer() throws SerializerException { odata.createEdmAssistedSerializer(null); }
@Test public void edmAssistedSerializerWithVersion() throws SerializerException { List<String> versions = new ArrayList<String>(); versions.add("4.01"); assertNotNull(odata.createEdmAssistedSerializer(ContentType.APPLICATION_JSON, versions)); versions.add("5"); assertNotNull(odata.createEdmAssistedSerializer(ContentType.APPLICATION_JSON, versions)); }