IdentityPartitionFilter implements PartitionFilter { @Override public Iterable<ServiceEndPoint> filter(Iterable<ServiceEndPoint> endPoints, PartitionContext partitionContext) { return endPoints; }  @Override Iterable<ServiceEndPoint> filter(Iterable<ServiceEndPoint> endPoints, PartitionContext partitionContext);  }
@SuppressWarnings("unchecked") @Test public void testIdentityFilter() { Iterable<ServiceEndPoint> iterable = mock(Iterable.class); IdentityPartitionFilter filter = new IdentityPartitionFilter(); assertSame(iterable, filter.filter(iterable, mock(PartitionContext.class))); }