@Test
    public void create_access_message_isCorrect1() {
        //Message 16
        final String expectedAccessMessage = "8008FF";
        final int opCode = 0x8008;
        final byte[] parameters = MeshParserUtils.toByteArray("FF");

        final AccessMessage accessMessage = new AccessMessage();
        accessMessage.setOpCode(opCode);
        accessMessage.setParameters(parameters);

        final ProvisionedMeshNode meshNode = new ProvisionedMeshNode();
        final MeshTransport meshLayerTestBase = new MeshTransport(context, meshNode);
        meshLayerTestBase.createAccessMessage(accessMessage);
        final byte[] actualAccessMessage = accessMessage.getAccessPdu();
        assertEquals(expectedAccessMessage, MeshParserUtils.bytesToHex(actualAccessMessage, false));
    }
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/AccessLayerTests.java