@Test
    public void createConfigNetKeyAdd() {
        //Message 6
        final String expectedAccessPayload = "804023017dd7364cd842ad18c17c2b820c84c3d6".toUpperCase(Locale.US);
        final NetworkKey netKey = new NetworkKey(MeshParserUtils.hexToInt("0123"), MeshParserUtils.toByteArray("7dd7364cd842ad18c17c2b820c84c3d6"));
        final ConfigNetKeyAdd configNetKeyAdd = new ConfigNetKeyAdd(netKey);
        final ByteBuffer buffer = ByteBuffer.allocate(configNetKeyAdd.getParameters().length + 2);
        buffer.putShort((short) configNetKeyAdd.getOpCode());
        buffer.put(configNetKeyAdd.getParameters());
        final byte[] accessPayload = buffer.array();
        assertEquals(expectedAccessPayload, MeshParserUtils.bytesToHex(accessPayload, false));
    }
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