PolicyAssignment { public PolicyAssignment() { } PolicyAssignment();  PolicyAssignment(String policyName, String queueId); String getPolicyName(); String getQueueId(); void setPolicyName(String policyName); void setQueueId(String queueId); String getVersion(); void setVersion(String version); @Override String toString();  }
@Test public void testPolicyAssignment() { PolicyAssignment policyAssignment = new PolicyAssignment("policy", "queue"); Assert.assertEquals("policy", policyAssignment.getPolicyName()); Assert.assertEquals("queue", policyAssignment.getQueueId()); Assert.assertEquals(null, policyAssignment.getVersion()); Assert.assertEquals("PolicyAssignment of policy policy, queueId queue, version null !", policyAssignment.toString()); Assert.assertFalse(policyAssignment.equals(new PolicyAssignment("policy", "queue"))); Assert.assertFalse(policyAssignment == new PolicyAssignment("policy", "queue")); Assert.assertFalse(policyAssignment.hashCode() == new PolicyAssignment("policy", "queue").hashCode()); }