    public @Test void testInitializeRGBChannels_KduPreV7() throws Exception {

        assumeTrue(format("JNI version=%d, expected < 7, ignoring", JNI_VERSION), JNI_VERSION < 7);

        KakaduUtilities.initializeRGBChannels(channels);

        verify(channels).Init(eq(3));
        List<List<Object>> args = colorMappingCapturer.invocationArguments;
        assertEquals(3, args.size());

        List<List<Object>> expectedCallsAndArgs = asList(asList(0, 0, 0), asList(1, 0, 1), asList(2, 0, 2));
        assertEquals(expectedCallsAndArgs, args);
    }