@Test public void testGetHeaders() { final SimpleMessage message = new SimpleMessage(); assertNotNull(message.getHeaders()); assertTrue(message.getHeaders().isEmpty()); final String senderName = "test"; message.addHeader(Message.Headers.SENDER, senderName); assertNotNull(message.getHeaders()); assertFalse(message.getHeaders().isEmpty()); assertEquals(senderName, message.getHeaders().get(Message.Headers.SENDER)); }
@Override public Map<Headers, String> getHeaders() { return Collections.unmodifiableMap(headers); }
SimpleMessage implements Message { @Override public Map<Headers, String> getHeaders() { return Collections.unmodifiableMap(headers); } }
SimpleMessage implements Message { @Override public Map<Headers, String> getHeaders() { return Collections.unmodifiableMap(headers); }  }
SimpleMessage implements Message { @Override public Map<Headers, String> getHeaders() { return Collections.unmodifiableMap(headers); }  @Override void addHeader(Headers header, String value); @Override String getHeader(Headers header); @Override Map<Headers, String> getHeaders(); @Override String getBody(); @Override void setBody(String body); }
SimpleMessage implements Message { @Override public Map<Headers, String> getHeaders() { return Collections.unmodifiableMap(headers); }  @Override void addHeader(Headers header, String value); @Override String getHeader(Headers header); @Override Map<Headers, String> getHeaders(); @Override String getBody(); @Override void setBody(String body);  }