### Question:
EdmImpl implements Edm { @Override public List<EdmEntitySet> getEntitySets() throws EdmException { try { if (edmEntitySets == null) { edmEntitySets = createEntitySets(); } } catch (EdmException e) { throw e; } catch (ODataException e) { throw new EdmException(EdmException.COMMON, e); } return edmEntitySets; } EdmImpl(final EdmServiceMetadata edmServiceMetadata); @Override EdmEntityContainer getEntityContainer(final String name); @Override EdmEntityType getEntityType(final String namespaceOrAlias, final String name); @Override EdmComplexType getComplexType(final String namespaceOrAlias, final String name); @Override EdmAssociation getAssociation(final String namespaceOrAlias, final String name); @Override EdmServiceMetadata getServiceMetadata(); @Override EdmEntityContainer getDefaultEntityContainer(); @Override List<EdmEntitySet> getEntitySets(); @Override List<EdmFunctionImport> getFunctionImports();  }### Answer:
@Test public void testEntitySetsCache() throws EdmException { assertEquals(edm.getEntitySets(), edm.getEntitySets()); }