@Test
public void testGetBridgeIds() {

    ThingTypeUID thingType = new ThingTypeUID("fake", "type");
    ThingUID subject = new ThingUID(thingType, new ThingUID("fake", "something", "bridge"), "thing");
    assertEquals("fake:type:bridge:thing", subject.getAsString());
    assertThat(subject.getBridgeIds(), hasSize(1));
    assertEquals("bridge", subject.getBridgeIds().get(0));
}