### Question:
ContextUtils { public static boolean hasEmptyAction(AddressingProperties maps) { boolean empty = maps.getAction() == null; if (maps.getAction() != null && maps.getAction().getValue().isEmpty()) { maps.setAction(null); empty = false; } return empty; } 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 testHasEmptyAddress() { AddressingProperties maps = new AddressingProperties(); assertThat(hasEmptyAction(maps), is(true)); maps.setAction(new AttributedURIType()); maps.getAction().setValue(""); assertThat(hasEmptyAction(maps), is(false)); assertThat(maps.getAction(), nullValue()); maps.setAction(new AttributedURIType()); maps.getAction().setValue("test"); assertThat(hasEmptyAction(maps), is(false)); assertThat(maps.getAction(), notNullValue()); }