@Test
public void lastValue() {

    AddressTemplate at = AddressTemplate.ROOT;
    assertNull(at.lastValue());
    at = AddressTemplate.of("a=b");
    assertEquals("b", at.lastValue());
    at = AddressTemplate.of("a=b/{c}");
    assertNull(at.lastValue());
    at = AddressTemplate.of("{a}/b={c}");
    assertEquals("{c}", at.lastValue());
}