@Test
public void testNewTopicPathBuilderFromNamespacedEntityId() {

    final TopicPathBuilder topicPathBuilder =
            ProtocolFactory.newTopicPathBuilder(DefaultNamespacedEntityId.of(NAMESPACE, ID));
    final TopicPath topicPath = topicPathBuilder.twin().commands().modify().build();
    assertThat(topicPath.getNamespace()).isEqualTo(NAMESPACE);
    assertThat(topicPath.getId()).isEqualTo(ID);
    assertThat(topicPath.getChannel()).isEqualTo(TopicPath.Channel.TWIN);
    assertThat(topicPath.getGroup()).isEqualTo(TopicPath.Group.THINGS);
    assertThat(topicPath.getCriterion()).isEqualTo(TopicPath.Criterion.COMMANDS);
    assertThat(topicPath.getAction()).contains(TopicPath.Action.MODIFY);
}