@Test public void testEmpty() { EntityGraph emptyGraph = EntityGraphs.empty(); assertThat(OptionalEntityGraph.of(emptyGraph)).isEmpty(); }
public static Optional<EntityGraph> of(EntityGraph entityGraph) { if (EntityGraphs.isEmpty(entityGraph)) { return Optional.empty(); } return Optional.of(entityGraph); }
OptionalEntityGraph { public static Optional<EntityGraph> of(EntityGraph entityGraph) { if (EntityGraphs.isEmpty(entityGraph)) { return Optional.empty(); } return Optional.of(entityGraph); } }
OptionalEntityGraph { public static Optional<EntityGraph> of(EntityGraph entityGraph) { if (EntityGraphs.isEmpty(entityGraph)) { return Optional.empty(); } return Optional.of(entityGraph); }  }
OptionalEntityGraph { public static Optional<EntityGraph> of(EntityGraph entityGraph) { if (EntityGraphs.isEmpty(entityGraph)) { return Optional.empty(); } return Optional.of(entityGraph); }  static Optional<EntityGraph> of(EntityGraph entityGraph); }
OptionalEntityGraph { public static Optional<EntityGraph> of(EntityGraph entityGraph) { if (EntityGraphs.isEmpty(entityGraph)) { return Optional.empty(); } return Optional.of(entityGraph); }  static Optional<EntityGraph> of(EntityGraph entityGraph);  }