### Question:
EdmEntityTypeImplProv extends EdmStructuralTypeImplProv implements EdmEntityType { @Override public List<String> getNavigationPropertyNames() throws EdmException { if (edmNavigationPropertyNames == null) { edmNavigationPropertyNames = new ArrayList<String>(); if (edmBaseType != null) { edmNavigationPropertyNames.addAll(((EdmEntityType) edmBaseType).getNavigationPropertyNames()); } if (entityType.getNavigationProperties() != null) { for (final NavigationProperty navigationProperty : entityType.getNavigationProperties()) { edmNavigationPropertyNames.add(navigationProperty.getName()); } } } return edmNavigationPropertyNames; } EdmEntityTypeImplProv(final EdmImplProv edm, final EntityType entityType, final String namespace); @Override List<String> getKeyPropertyNames(); @Override List<EdmProperty> getKeyProperties(); @Override boolean hasStream(); @Override EdmCustomizableFeedMappings getCustomizableFeedMappings(); @Override List<String> getNavigationPropertyNames(); @Override EdmEntityType getBaseType();  }### Answer:
@Test public void getNavProperties() throws Exception { List<String> navProperties = edmEntityType.getNavigationPropertyNames(); assertNotNull(navProperties); assertTrue(navProperties.contains("fooBarNav")); }
@Test public void getNavPropertiesWithBaseType() throws Exception { List<String> navProperties = edmEntityTypeWithBaseType.getNavigationPropertyNames(); assertNotNull(navProperties); assertTrue(navProperties.contains("barBaseNav")); }