@Test(expected = IllegalArgumentException.class)
public void tokenLimit() throws Exception {

    CoapPacket packet = new CoapPacket(null);
    packet.setToken(new byte[]{1, 2, 3, 4, 5, 6, 7, 8, 9});
}