### Question:
ShogunCoreAuthenticationProvider implements AuthenticationProvider { public PasswordEncoder getPasswordEncoder() { return passwordEncoder; }  @Override @Transactional(value = "transactionManager", readOnly = true) Authentication authenticate(Authentication authentication); @Override boolean supports(Class<?> authentication); PasswordEncoder getPasswordEncoder(); void setPasswordEncoder(PasswordEncoder passwordEncoder);  }### Answer:
@Test public void hasPasswordEncoderSet() { assertNotNull(authProvider.getPasswordEncoder()); }