private static class DAGCounterRequestMatcher extends ArgumentMatcher<GetDAGStatusRequestProto>{
@Override
public boolean matches(Object argument) {
if (argument instanceof GetDAGStatusRequestProto){
GetDAGStatusRequestProto requestProto = (GetDAGStatusRequestProto)argument;
return requestProto.getStatusOptionsCount() != 0
&& requestProto.getStatusOptionsList().get(0) == StatusGetOptsProto.GET_COUNTERS;
}
return false;
}