### Question:
CommonResourceSupertypeScanner { public Optional<Class<? extends IBaseResource>> getLowestCommonSuperclass() { if (!initialized || greatestSharedAncestorsDescending.isEmpty()) { return Optional.empty(); } return Optional.ofNullable(greatestSharedAncestorsDescending.get(greatestSharedAncestorsDescending.size() - 1)); }  void register(Class<? extends IBaseResource> resourceClass); Optional<Class<? extends IBaseResource>> getLowestCommonSuperclass();  }### Answer:
@Test public void testEmpty() { assertThat(scanner.getLowestCommonSuperclass().isPresent(), is(false)); }