### Question:
StructuredDirectory { public static int[] getSplit(int docId) { if (docId <= 0) { throw new IllegalArgumentException("docId must be positive"); } int[] ret = new int[3]; ret[0] = docId / 1000000; ret[1] = (docId % 1000000) / 1000; ret[2] = docId % 1000; return ret; }  static int[] getSplit(int docId); static File storeFile(File outDir, File inputFile); static int decodeFileName(File inputFile); static int decodeFileName(String inputFile); static String getFilePath(int docId, String extention);  }### Answer:
@Test public void testGetSplit() { assertArrayEquals(new int[] { 2, 345, 678 }, StructuredDirectory.getSplit(2345678)); assertArrayEquals(new int[] { 22, 345, 678 }, StructuredDirectory.getSplit(22345678)); assertArrayEquals(new int[] { 0, 1, 234 }, StructuredDirectory.getSplit(1234)); assertArrayEquals(new int[] { 0, 0, 78 }, StructuredDirectory.getSplit(78)); }