@Test
public void testFlowOverrideEbmsUTOnly() throws Exception {

	final Collection<ISecurityProcessingResult> authInfo = new ArrayList<>();
    IUsernameTokenProcessingResult utResultMock = mock(IUsernameTokenProcessingResult.class);
    when(utResultMock.getUsername()).thenReturn("janedoe");
    when(utResultMock.getPassword()).thenReturn("secret");
    when(utResultMock.getPasswordType()).thenReturn(UTPasswordType.TEXT);
    when(utResultMock.getTargetedRole()).thenReturn(SecurityHeaderTarget.EBMS);
    authInfo.add(utResultMock);
    Collection<IPMode> pmodes = PModeFinder.findForPulling(authInfo, null);
    assertFalse(Utils.isNullOrEmpty(pmodes));
    assertEquals("flow_override_ebms_ut_only", pmodes.iterator().next().getId());
}