Use fluent style setters in SDRCategoryEncoder.Buileder.
Replaced unnessosary string coversion: assertEquals(Arrays.toString(topDown.getEncoding()), Arrays.toString(output))
with equals:assertTrue(Arrays.equals(topDown.getEncoding(),output));