@Test
public void serverAtTheEnd() throws Exception {

    ResourceAddress input = new ResourceAddress()
            .add("profile", "full")
            .add("subsystem", "mail")
            .add("mail-session", "default")
            .add("server", "imap");
    ResourceAddress expected = new ResourceAddress()
            .add("profile", "*")
            .add("subsystem", "mail")
            .add("mail-session", "default")
            .add("server", "imap");
    ResourceAddress result = processor.apply(input);
    assertEquals(expected, result);
}