### Question:
ClosedLoopPolicy extends Policy { @Override public Object getCorrectPolicyDataObject() { return policyAdapter.getPolicyData(); } ClosedLoopPolicy();  ClosedLoopPolicy(PolicyRestAdapter policyAdapter); @Override Map<String, String> savePolicies(); @Override boolean prepareToSave(); @Override Object getCorrectPolicyDataObject();  }### Answer:
@Test public void testConstructor1() { thrown.expect(NullPointerException.class); ClosedLoopPolicy policy = new ClosedLoopPolicy(); policy.getCorrectPolicyDataObject(); }
@Test public void testConstructor2() { PolicyRestAdapter policyAdapter = new PolicyRestAdapter(); ClosedLoopPolicy policy = new ClosedLoopPolicy(policyAdapter); assertNull(policy.getCorrectPolicyDataObject()); }