@Test public void filterProperties_message_passesFatalOnSetException() throws JMSException {

  Message message = mock(Message.class);
  when(message.getPropertyNames()).thenReturn(
    Collections.enumeration(Collections.singletonList("JMS_SQS_DeduplicationId")));
  when(message.getObjectProperty("JMS_SQS_DeduplicationId")).thenReturn("");
  doThrow(new LinkageError()).when(message).setObjectProperty(anyString(), eq(""));
  assertThatThrownBy(
    () -> PropertyFilter.filterProperties(message, Collections.singleton("b3"))).isInstanceOf(
    LinkageError.class);
}