  @Test
  public void testConstraintInvalid() {

    when(_testNode.getAssignedReplicaCount()).thenReturn(10);
    when(_testNode.getMaxPartition()).thenReturn(5);
    Assert.assertFalse(_constraint.isAssignmentValid(_testNode, _testReplica, _clusterContext));
  }