@Test
public void testThreeSegments() {

    ThingTypeUID thingType = new ThingTypeUID("fake", "type");
    ThingUID subject = new ThingUID(thingType, "thing");
    assertEquals("fake", subject.getBindingId());
    assertEquals("thing", subject.getId());
    assertThat(subject.getAllSegments(), hasSize(3));
    assertEquals("fake:type:thing", subject.getAsString());
}