@Test void builderShouldTrimEmptyUserFlags() { Flags flags = new Flags(); flags.add(""); flags.add("value2"); Flags actual = FlagsFactory.builder().flags(flags).addUserFlags("", "value").build(); assertThat(actual.getUserFlags()).containsOnly("value", "value2"); }
public static Builder builder() { return new Builder(); }
FlagsFactory { public static Builder builder() { return new Builder(); } }
FlagsFactory { public static Builder builder() { return new Builder(); }  }
FlagsFactory { public static Builder builder() { return new Builder(); }  static Flags createFlags(MailboxMessage mailboxMessage, String[] userFlags); static Builder builder(); static Flags empty(); }
FlagsFactory { public static Builder builder() { return new Builder(); }  static Flags createFlags(MailboxMessage mailboxMessage, String[] userFlags); static Builder builder(); static Flags empty();  }