### Question:
SnsMessage { public void clearModifiedPartitions() { if (modifiedPartitions != null) { modifiedPartitions.clear(); } } SnsMessage(
      SnsMessageType type,
      Map<String, String> headers,
      String startTime,
      String endTime,
      String eventId,
      String sourceCatalog,
      String replicaCatalog,
      String replicaMetastoreUris,
      String sourceTable,
      String replicaTable,
      String replicaTableLocation,
      LinkedHashMap<String, String> partitionKeys,
      List<List<String>> modifiedPartitions,
      Long bytesReplicated,
      String errorMessage); String getProtocolVersion(); SnsMessageType getType(); Map<String, String> getHeaders(); String getStartTime(); String getEndTime(); String getEventId(); String getSourceCatalog(); String getReplicaCatalog(); String getSourceTable(); String getReplicaTable(); String getReplicaTableLocation(); String getReplicaMetastoreUris(); LinkedHashMap<String, String> getPartitionKeys(); List<List<String>> getModifiedPartitions(); void clearModifiedPartitions(); Long getBytesReplicated(); String getErrorMessage(); Boolean isMessageTruncated(); void setMessageTruncated(Boolean truncated);  }### Answer:
@Test public void clearNullPartitions() throws JsonProcessingException { SnsMessage message = new SnsMessage(null, null, null, null, null, null, null, null, null, null, null, null, null, 0L, null); message.clearModifiedPartitions(); }