@Test
public void emptyInlineEntityOlingo540() throws Exception {

  final String content = "" +
      "<entry xmlns=\"http://www.w3.org/2005/Atom\" "
      + "xmlns:data=\"http://docs.oasis-open.org/odata/ns/data\" "
      + "xmlns:metadata=\"http://docs.oasis-open.org/odata/ns/metadata\" "
      + "xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\" "
      + "xml:base=\"http://services.odata.org/V3/OData/OData.svc/\">\r\n" +
      "    <id>http://services.odata.org/V3/OData/OData.svc/Products(3)</id>\r\n" +
      "    <category term=\"ODataDemo.Product\" "
      + "scheme=\"http://docs.oasis-open.org/odata/ns/scheme\" />\r\n" +
      "    \r\n" +
      "    <link rel=\"edit\" title=\"Product\" href=\"Products\" />\r\n" +
      "    <link rel=\"http://docs.oasis-open.org/odata/ns/related/Categories\" "
      + "type=\"application/atom+xml;type=feed\" title=\"Categories\" href=\"Products(3)/Categories\" />\r\n" +
      "    <link rel=\"http://docs.oasis-open.org/odata/ns/related/Supplier\" "
      + "type=\"application/atom+xml;type=entry\" title=\"Supplier\" href=\"Products(3)/Supplier\">\r\n" +
      "    <metadata:inline>\r\n" +
      "    </metadata:inline>\r\n" +
      "    </link>\r\n" +
      "    <link rel=\"http://docs.oasis-open.org/odata/ns/related/ProductDetail\""
      + " type=\"application/atom+xml;type=entry\" title=\"ProductDetail\" "
      + "href=\"Products(3)/ProductDetail\" />\r\n" +
      "    <title type=\"text\">Havina Cola</title>\r\n" +
      "    <summary type=\"text\">The Original Key Lime Cola</summary>\r\n" +
      "    <updated>2015-01-26T08:57:02Z</updated>\r\n" +
      "    <author>\r\n" +
      "        <name />\r\n" +
      "    </author>\r\n" +
      "    <link rel=\"http://docs.oasis-open.org/odata/ns/relatedlinks/Categories\" "
      + "type=\"application/xml\" title=\"Categories\" href=\"Products(3)/$links/Categories\" />\r\n" +
      "    <link rel=\"http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier\" "
      + "type=\"application/xml\" title=\"Supplier\" href=\"Products(3)/$links/Supplier\" />\r\n" +
      "    <link rel=\"http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail\""
      + " type=\"application/xml\" title=\"ProductDetail\" href=\"Products(3)/$links/ProductDetail\" />\r\n" +
      "    <content type=\"application/xml\">\r\n" +
      "        <metadata:properties>\r\n" +
      "            <data:ID metadata:type=\"Edm.Int32\">3</data:ID>\r\n" +
      "            <data:ReleaseDate metadata:type=\"Edm.DateTime\">2005-10-01T00:00:00</data:ReleaseDate>\r\n" +
      "  <data:DiscontinuedDate metadata:type=\"Edm.DateTime\">2006-10-01T00:00:00</data:DiscontinuedDate>\r\n" +
      "            <data:Rating metadata:type=\"Edm.Int16\">3</data:Rating>\r\n" +
      "            <data:Price metadata:type=\"Edm.Double\">19.9</data:Price>\r\n" +
      "        </metadata:properties>\r\n" +
      "    </content>\r\n" +
      " </entry>";
  final AtomDeserializer deserializer = new AtomDeserializer();
  final InputStream in = new ByteArrayInputStream(content.getBytes("UTF-8"));
  final ResWrap<Entity> entity = deserializer.toEntity(in);
  assertNotNull(entity);
  assertNull(entity.getPayload().getNavigationLink("Supplier").getInlineEntitySet());
}