### Question:
AbstractRMInterceptor extends AbstractPhaseInterceptor<T> { void assertReliability(Message message) { AssertionInfoMap aim = message.get(AssertionInfoMap.class); Collection<AssertionInfo> ais = RMPolicyUtilities.collectRMAssertions(aim); for (AssertionInfo ai : ais) { ai.setAsserted(true); } } protected  AbstractRMInterceptor(String phase); protected  AbstractRMInterceptor(); RMManager getManager(); void setManager(RMManager m); Bus getBus(); void setBus(Bus bus); void handleMessage(Message msg);  }### Answer:
@Test public void testAssertReliability() { RMInterceptor interceptor = new RMInterceptor(); Message message = control.createMock(Message.class); EasyMock.expect(message.get(AssertionInfoMap.class)).andReturn(null); AssertionInfoMap aim = control.createMock(AssertionInfoMap.class); Collection<AssertionInfo> ais = new ArrayList<>(); EasyMock.expect(message.get(AssertionInfoMap.class)).andReturn(aim).times(2); PolicyAssertion a = control.createMock(PolicyAssertion.class); AssertionInfo ai = new AssertionInfo(a); EasyMock.expectLastCall(); control.replay(); interceptor.assertReliability(message); assertFalse(ai.isAsserted()); aim.put(RM10Constants.RMASSERTION_QNAME, ais); interceptor.assertReliability(message); assertFalse(ai.isAsserted()); ais.add(ai); interceptor.assertReliability(message); }