@Test
    public void create_unsegmented_control_message_isCorrect() {
        //Message #1
        final byte[] expectedLowerTransportPdu = MeshParserUtils.toByteArray("034b50057e400000010000");
        final int src = 0x1201;
        final int dst = 0xfffd;
        final byte[] sequenceNumber = MeshParserUtils.toByteArray("000006");
        final byte[] ivIndex = MeshParserUtils.toByteArray("12345678");
        final int opCode = 0x03;
        final byte aszmic = 0;
        final int akf = 0;
        final byte[] upperTransportPdu = MeshParserUtils.toByteArray("4b50057e400000010000".toUpperCase(Locale.US));

        final MeshTransport meshLayerTestBase = new MeshTransport(context);
        final ControlMessage controlMessage = new ControlMessage();
        controlMessage.setSrc(src);
        controlMessage.setDst(dst);
        controlMessage.setSequenceNumber(sequenceNumber);
        controlMessage.setIvIndex(ivIndex);
        controlMessage.setAkf(akf);
        controlMessage.setAszmic(aszmic);
        controlMessage.setOpCode(opCode);
        controlMessage.setTransportControlPdu(upperTransportPdu);

        meshLayerTestBase.createLowerTransportControlPDU(controlMessage);
        final SparseArray<byte[]> actualTransportAccessPdu = controlMessage.getLowerTransportControlPdu();
        Assert.assertArrayEquals(expectedLowerTransportPdu, actualTransportAccessPdu.get(0));
    }
Example local unit test, which will execute on the development machine (host).

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