@Test
public void testGetNamespacePrefixes() {

    final ForcedRoot emptyRoot = new ForcedRoot();
    assertArrayEquals("expect prefixes", new String[0],
            emptyRoot.getNamespacePrefixes());
    final ForcedRoot noPrefixRoot = new ForcedRoot()
            .withPath("path")
            .withPrimaryType("type")
            .withMixinTypes("mixinType");
    assertArrayEquals("expect prefixes", new String[0],
            noPrefixRoot.getNamespacePrefixes());
    final ForcedRoot root = new ForcedRoot()
            .withPath("foo:path")
            .withPrimaryType("bar:type")
            .withMixinTypes("foobar:type");
    assertArrayEquals("expect prefixes", new String[]{"foo", "bar", "foobar"},
            root.getNamespacePrefixes());
}