Robots { @Nonnull public List<Directive> getNonGroupDirectives() { return nonGroupDirectives; } private  Robots(@Nonnull Builder builder); @Nonnull List<Group> getGroups(); @Nonnull List<Directive> getNonGroupDirectives(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Nonnull @Override String toString();  }
@Test public void givenEmptyRobots_whenGetNonGroupDirectives_thenReturnsEmptyList() { Robots robots = new Robots.Builder().build(); assertThat(robots.getNonGroupDirectives(), empty()); }