@Test
public void compareSVNAuthentications() throws Exception {
assertFalse(SubversionSCM.compareSVNAuthentications(new SVNUserNameAuthentication("me",true),new SVNSSHAuthentication("me","me",22,true)));
_idem(new SVNUserNameAuthentication("me",true));
_idem(new SVNSSHAuthentication("me","pass",22,true));
_idem(new SVNSSHAuthentication("me",new File("./some.key"),null,23,false));
_idem(new SVNSSHAuthentication("me","key".toCharArray(),"phrase",0,false));
_idem(new SVNPasswordAuthentication("me","pass",true));
_idem(new SVNSSLAuthentication(new File("./some.key"), "", true));
assertTrue(SubversionSCM.compareSVNAuthentications(
new SVNSSHAuthentication("me",new File("./some.key"),null,23,false),
new SVNSSHAuthentication("me",new File("./some.key"),null,23,false)));
assertTrue(SubversionSCM.compareSVNAuthentications(
new SVNSSHAuthentication("me","key".toCharArray(),"phrase",0,false),
new SVNSSHAuthentication("me","key".toCharArray(),"phrase",0,false)));
assertFalse(SubversionSCM.compareSVNAuthentications(
new SVNSSHAuthentication("me",new File("./some1.key"),null,23,false),
new SVNSSHAuthentication("me",new File("./some2.key"),null,23,false)));
assertFalse(SubversionSCM.compareSVNAuthentications(
new SVNSSHAuthentication("me","key".toCharArray(),"phrase",0,false),
new SVNSSHAuthentication("yo","key".toCharArray(),"phrase",0,false)));
}