### Question:
ContextUtils { public static boolean isOutbound(Message message) { return message != null && message.getExchange() != null && (message == message.getExchange().getOutMessage() || message == message.getExchange().getOutFaultMessage()); } private  ContextUtils(); static boolean isOutbound(Message message); static boolean isFault(Message message); static boolean isRequestor(Message message); static String getMAPProperty(boolean isRequestor,
                                        boolean isProviderContext,
                                        boolean isOutbound); static void storeMAPs(AddressingProperties maps,
                                 Message message,
                                 boolean isOutbound); static void storeMAPs(AddressingProperties maps,
                                 Message message,
                                 boolean isOutbound,
                                 boolean isRequestor); static void storeMAPs(AddressingProperties maps,
                                 Message message,
                                 boolean isOutbound,
                                 boolean isRequestor,
                                 boolean isProviderContext); static AddressingProperties retrieveMAPs(
                                                   Message message,
                                                   boolean isProviderContext,
                                                   boolean isOutbound); static AddressingProperties retrieveMAPs(
                                                   Message message,
                                                   boolean isProviderContext,
                                                   boolean isOutbound,
                                                   boolean warnIfMissing); static AttributedURIType getAttributedURI(String uri); static RelatesToType getRelatesTo(String uri); static boolean isGenericAddress(EndpointReferenceType ref); static boolean isAnonymousAddress(EndpointReferenceType ref); static boolean isNoneAddress(EndpointReferenceType ref); static boolean hasEmptyAction(AddressingProperties maps); static void propogateReceivedMAPs(AddressingProperties inMAPs,
                                              Exchange exchange); static void propogateReceivedMAPs(AddressingProperties inMAPs,
                                             Message responseMessage); static void storeMAPFaultName(String faultName,
                                         Message message); static String retrieveMAPFaultName(Message message); static void storeMAPFaultReason(String reason,
                                           Message message); static String retrieveMAPFaultReason(Message message); static void storePartialResponseSent(Message message); static boolean retrievePartialResponseSent(Message message); static void storeDeferUncorrelatedMessageAbort(Message message); static boolean retrieveDeferUncorrelatedMessageAbort(Message message); static void storeDeferredUncorrelatedMessageAbort(Message message); static boolean retrieveDeferredUncorrelatedMessageAbort(Message message); static boolean retrieveAsyncPostResponseDispatch(Message message); static String generateUUID(); static Conduit getConduit(Conduit conduit, Message message); static EndpointReferenceType getNoneEndpointReference(); static void applyReferenceParam(EndpointReferenceType toEpr, Object el); static Message createMessage(Exchange exchange); static Destination createDecoupledDestination(Exchange exchange,
                                                         final EndpointReferenceType reference); static final ObjectFactory WSA_OBJECT_FACTORY; static final String ACTION; }### Answer:
@Test public void testIsOutbound() { assertThat(isOutbound(null), is(false)); MessageImpl message = new MessageImpl(); assertThat(isOutbound(message), is(false)); message.setExchange(new ExchangeImpl()); assertThat(isOutbound(message), is(false)); message.getExchange().setOutMessage(message); assertThat(isOutbound(message), is(true)); message.getExchange().setOutMessage(null); message.getExchange().setOutFaultMessage(message); assertThat(isOutbound(message), is(true)); }