@Test public void shouldSecureResponse() throws AuthException { // Given MessageInfoContext messageInfo = mock(MessageInfoContext.class); Subject serviceSubject = new Subject(); // When AuthStatus authStatus = module.secureResponse(messageInfo, serviceSubject).getOrThrowUninterruptibly(); // Then assertEquals(authStatus, AuthStatus.SEND_SUCCESS); verifyZeroInteractions(messageInfo); }