BucketBackupMessage extends PartitionMessage { @Override protected boolean failIfRegionMissing() { return false; } BucketBackupMessage(); private  BucketBackupMessage(Set recipients, int regionId, int bucketId); static void send(Set recipients, PartitionedRegion r, int bucketId); @Override int getProcessorType(); @Override int getDSFID(); @Override void fromData(DataInput in,
      DeserializationContext context); @Override void toData(DataOutput out,
      SerializationContext context);  }
@Test public void shouldBeMockable() throws Exception { BucketBackupMessage mockBucketBackupMessage = mock(BucketBackupMessage.class); when(mockBucketBackupMessage.failIfRegionMissing()).thenReturn(true); assertThat(mockBucketBackupMessage.failIfRegionMissing()).isTrue(); }