@Test
public void testRequestsWithDifferentOrderOfAcceptOptions() throws Exception {
URI targetUri = new URI("coap", null, "localhost", 5683, "/path/to/service", null, null);
CoapRequest coapRequest1 = new CoapRequest(MessageType.Name.NON, MessageCode.Name.GET, targetUri);
coapRequest1.setToken(new Token(new byte[0]));
coapRequest1.setMessageID(12345);
coapRequest1.setAccept(ContentFormat.TEXT_PLAIN_UTF8, ContentFormat.APP_XML);
CoapRequest coapRequest2 = new CoapRequest(MessageType.Name.NON, MessageCode.Name.GET, targetUri);
coapRequest2.setToken(new Token(new byte[0]));
coapRequest2.setMessageID(12345);
coapRequest1.setAccept(ContentFormat.APP_XML, ContentFormat.TEXT_PLAIN_UTF8);
Assert.assertFalse("Requests with different order of accept options must not equal!",
coapRequest1.equals(coapRequest2));