@Test
    public void parseConfigNetKeyStatus() {
        //based on Message 6
        final int expectedNetKeyIndex = MeshParserUtils.hexToInt("0123");
        final AccessMessage message = new AccessMessage();
        message.setOpCode(MeshParserUtils.hexToInt("8040"));
        message.setParameters(MeshParserUtils.toByteArray("002301".toUpperCase(Locale.US)));

        final ConfigNetKeyStatus configAppKeyStatus = new ConfigNetKeyStatus(message);
        final int actualNetKeyIndex = configAppKeyStatus.getNetKeyIndex();
        assertEquals(expectedNetKeyIndex, actualNetKeyIndex);
    }
Configuration message tests

@see <a href="http://d.android.com/tools/testing">Testing documentation</a>
mesh/src/test/java/no/nordicsemi/android/mesh/transport/ConfigMessageTests.java