headers = message.getAllHeaders();
Assert.assertNotNull(headers);
Assert.assertEquals(1, headers.length);
Assert.assertEquals(null, headers[0].getValue());
message.removeHeader(message.getFirstHeader("whatever"));
headers = message.getAllHeaders();
Assert.assertNotNull(headers);
Assert.assertEquals(0, headers.length);
}