}
@Test
public void testGetLinks() {
InboundMessageContext r = createInboundMessageContext();
Link link1 = Link.fromUri("http://example.org/app/link1").param("produces", "application/json").param("method",
"GET").rel("self").build();
Link link2 = Link.fromUri("http://example.org/app/link2").param("produces", "application/xml").param("method",
"PUT").rel("self").build();
r.header("Link", link1.toString());
r.header("Link", link2.toString());
assertEquals(2, r.getLinks().size());
assertTrue(r.getLinks().contains(link1));
assertTrue(r.getLinks().contains(link2));
}