DefaultAuthenticationProvider implements AuthenticationProvider { @Override public boolean supports(final Class<?> clazz) { return clazz.equals(UsernamePasswordAuthenticationToken.class); }  @Override boolean supports(final Class<?> clazz); @Override @Transactional Authentication authenticate(final Authentication authentication);  }
@Test public void testSupports() throws Exception { boolean expected = true; boolean actual = unit.supports(UsernamePasswordAuthenticationToken.class); assertEquals(expected, actual); }