assertEquals("First message is no ACK!", MessageType.Name.ACK, message1.getMessageTypeName());
}
@Test
public void testSecondMessageisEmptyAck(){
CoapMessage message2 = endpoint.getReceivedMessage(1);
assertEquals("Second message is not empty!", MessageCode.Name.EMPTY, message2.getMessageCodeName());
assertEquals("Second message has wrong ID!", messageID, message2.getMessageID());
assertEquals("Second message is no ACK!", MessageType.Name.ACK, message2.getMessageTypeName());
}