@Test
public void testCopyToCharArray() {
String[] components = { "hello", "world", "yo" };
CategoryPath p = new CategoryPath(components);
char[] charArray = new char[p.charsNeededForFullPath()];
int numCharsCopied = 0;
numCharsCopied = p.copyToCharArray(charArray, 0, 0, '.');
assertEquals(0, numCharsCopied);
assertEquals("", new String(charArray, 0, numCharsCopied));