### Question:
CorbaConduit implements Conduit { public Map<TypeCode, RaisesType> getOperationExceptions( OperationType operation, CorbaTypeMap map) { if (orb == null) { prepareOrb(); } Map<TypeCode, RaisesType> exceptions = new HashMap<>(); List<RaisesType> exList = operation.getRaises(); if (exList != null) { for (int i = 0; i < exList.size(); ++i) { RaisesType ex = exList.get(i); TypeCode tc = CorbaUtils.getTypeCode(orb, ex.getException(), map); exceptions.put(tc, ex); } } return exceptions; } CorbaConduit(EndpointInfo ei, EndpointReferenceType ref, OrbConfig config); OrbConfig getOrbConfig(); synchronized void prepareOrb(); void prepare(Message message); void close(Message message); EndpointReferenceType getTarget(); void close(); void setMessageObserver(MessageObserver observer); final EndpointReferenceType getTargetReference(EndpointReferenceType t); final String getAddress(); void buildRequest(CorbaMessage message, OperationType opType); NVList getArguments(CorbaMessage message); NamedValue getReturn(CorbaMessage message); ExceptionList getExceptionList(Map<TypeCode, RaisesType> exceptions,
                                             CorbaMessage message,
                                             OperationType opType); Request getRequest(CorbaMessage message,
                                 String opName,
                                 org.omg.CORBA.NVList nvlist,
                                 org.omg.CORBA.NamedValue ret,
                                 org.omg.CORBA.ExceptionList exList); Map<TypeCode, RaisesType> getOperationExceptions(
                                         OperationType operation,
                                         CorbaTypeMap map); MessageObserver getMessageObserver();  }### Answer:
@Test public void testGetOperationExceptions() { CorbaConduit conduit = control.createMock(CorbaConduit.class); OperationType opType = control.createMock(OperationType.class); CorbaTypeMap typeMap = control.createMock(CorbaTypeMap.class); List<RaisesType> exlist = control.createMock(List.class); opType.getRaises(); EasyMock.expectLastCall().andReturn(exlist); int i = 0; EasyMock.expect(exlist.size()).andReturn(i); RaisesType rType = control.createMock(RaisesType.class); EasyMock.expect(exlist.get(0)).andReturn(rType); control.replay(); conduit.getOperationExceptions(opType, typeMap); assertEquals(exlist.size(), 0); }