@Test
public void testWithoutChannel() {

    thingBuilder.withChannels( //
            ChannelBuilder.create(new ChannelUID(THING_UID, "channel1")).build(), //
            ChannelBuilder.create(new ChannelUID(THING_UID, "channel2")).build());
    thingBuilder.withoutChannel(new ChannelUID(THING_UID, "channel1"));
    Thing thing = thingBuilder.build();
    assertThat(thing.getChannels(), hasSize(1));
    assertThat(thing.getChannels().get(0).getUID().getId(), is(equalTo("channel2")));
}