PrefixedWildcard implements MailboxNameExpression { @Override public String getCombinedName() { return prefix + FREEWILDCARD; } PrefixedWildcard(String prefix); @Override boolean isExpressionMatch(String name); @Override String getCombinedName(); @Override boolean isWild(); @Override MailboxNameExpression includeChildren(); @Override final boolean equals(Object o); @Override final int hashCode();  }
@Test void getCombinedNameShouldReturnName() { assertThat(new PrefixedWildcard(NAME).getCombinedName()) .isEqualTo(NAME + MailboxNameExpression.FREEWILDCARD); }