FetchPartitionDetailsMessage extends PartitionMessage { @Override protected boolean operateOnPartitionedRegion(ClusterDistributionManager dm, PartitionedRegion region, long startTime) throws ForceReattemptException { PartitionMemberInfoImpl details = (PartitionMemberInfoImpl) region.getRedundancyProvider() .buildPartitionMemberDetails(this.internal, this.loadProbe); OfflineMemberDetails offlineDetails; if (this.internal && this.fetchOfflineMembers) { offlineDetails = region.getRedundancyProvider().fetchOfflineMembers(); } else { offlineDetails = new OfflineMemberDetailsImpl(new Set[0]); } region.getPrStats().endPartitionMessagesProcessing(startTime); FetchPartitionDetailsReplyMessage.send(getSender(), getProcessorId(), details, dm, offlineDetails, null); return false; } FetchPartitionDetailsMessage(); private  FetchPartitionDetailsMessage(Set<InternalDistributedMember> recipients, int regionId,
      ReplyProcessor21 processor, boolean internal, boolean fetchOfflineMembers, LoadProbe probe);  FetchPartitionDetailsMessage(DataInput in); static FetchPartitionDetailsResponse send(Set<InternalDistributedMember> recipients,
      PartitionedRegion region, boolean internal, boolean fetchOfflineMembers, LoadProbe probe); @Override boolean isSevereAlertCompatible(); @Override int getDSFID(); @Override void fromData(DataInput in,
      DeserializationContext context); @Override void toData(DataOutput out,
      SerializationContext context);  }
@Test public void shouldBeMockable() throws Exception { FetchPartitionDetailsMessage mockFetchPartitionDetailsMessage = mock(FetchPartitionDetailsMessage.class); ClusterDistributionManager mockDistributionManager = mock(ClusterDistributionManager.class); PartitionedRegion mockPartitionedRegion = mock(PartitionedRegion.class); long startTime = System.currentTimeMillis(); Object key = new Object(); when(mockFetchPartitionDetailsMessage.operateOnPartitionedRegion(eq(mockDistributionManager), eq(mockPartitionedRegion), eq(startTime))).thenReturn(true); assertThat(mockFetchPartitionDetailsMessage.operateOnPartitionedRegion(mockDistributionManager, mockPartitionedRegion, startTime)).isTrue(); }