assertTrue(l.contains("reg"));
}
public void testBadAcceptHeader() throws Exception
{
AbstractSession session = new AbstractSession(getAlicePhone());
HeaderFactory hf = session.getHeaderFactory();
Request request = session.newRequest(Request.SUBSCRIBE, 1, getBobUri());
request.setHeader(hf.createExpiresHeader(60));
request.setHeader(hf.createEventHeader("presence"));
request.setHeader(getAlicePhone().getContactInfo().getContactHeader());
request.setHeader(hf.createAcceptHeader("application", "unknown"));
session.sendRequest(request, SipResponse.UNSUPPORTED_MEDIA_TYPE);
}