@Test(expectedExceptions = IOException.class,expectedExceptionsMessageRegExp = ".*not.*parse.*")
public void incomingWithLargerBuf() throws IOException {
JSONObject data = new JSONObject();
data.put("type", AbstractDiscoveryMessage.MessageType.QUERY.toString());
String json = data.toJSONString();
byte[] largeBuf = Arrays.copyOf(json.getBytes(),json.length() + 512);
DiscoveryIncomingMessage in = new DiscoveryIncomingMessage(new DatagramPacket(largeBuf,largeBuf.length));
}