### Question:
SCPProtocolPolicy { public void checkProtocol(SCPParameters p) throws CardException { checkProtocol(p.scpVersion, p.scpParameters); } SCPProtocolPolicy(int scpVersion, int scpParameters); String toString(); boolean isVersionAllowed(int version); boolean isParametersAllowed(int parameters); boolean isProtocolAllowed(int version, int parameters); boolean isProtocolAllowed(SCPParameters protocol); void checkProtocol(SCPParameters p); void checkProtocol(int scpProtocol, int scpParameters); static final SCPProtocolPolicy PERMISSIVE; static final SCPProtocolPolicy SCP01; static final SCPProtocolPolicy SCP02; static final SCPProtocolPolicy SCP03; final int mScpVersion; final int mScpParameters; }### Answer:
@Test(expected = CardException.class) public void testSCP03RejectSCP02_15() throws CardException { SCPProtocolPolicy pol = SCPProtocolPolicy.SCP03; pol.checkProtocol(SCP02_15); }
@Test(expected = CardException.class) public void testSCP03RejectSCP02_55() throws CardException { SCPProtocolPolicy pol = SCPProtocolPolicy.SCP03; pol.checkProtocol(SCP02_55); }
@Test(expected = CardException.class) public void testSCP01RejectSCP02_15() throws CardException { SCPProtocolPolicy pol = SCPProtocolPolicy.SCP01; pol.checkProtocol(SCP02_15); }
@Test(expected = CardException.class) public void testSCP01RejectSCP02_55() throws CardException { SCPProtocolPolicy pol = SCPProtocolPolicy.SCP01; pol.checkProtocol(SCP02_55); }
@Test(expected = CardException.class) public void testSCP02RejectSCP01_05() throws CardException { SCPProtocolPolicy pol = SCPProtocolPolicy.SCP02; pol.checkProtocol(SCP01_05); }
@Test(expected = CardException.class) public void testSCP02RejectSCP01_15() throws CardException { SCPProtocolPolicy pol = SCPProtocolPolicy.SCP02; pol.checkProtocol(SCP01_15); }
@Test(expected = CardException.class) public void testSCP03RejectSCP01_05() throws CardException { SCPProtocolPolicy pol = SCPProtocolPolicy.SCP03; pol.checkProtocol(SCP01_05); }
@Test(expected = CardException.class) public void testSCP03RejectSCP01_15() throws CardException { SCPProtocolPolicy pol = SCPProtocolPolicy.SCP03; pol.checkProtocol(SCP01_15); }