}
public void testRepositoryPermissionsOverride()
throws ConnectionException, AuthenticationException
{
Repository repository = new Repository();
RepositoryPermissions original = new RepositoryPermissions();
original.setFileMode( "664" );
repository.setPermissions( original );
RepositoryPermissions override = new RepositoryPermissions();
override.setFileMode( "644" );
wagon.setPermissionsOverride( override );
wagon.connect( repository );
assertEquals( override, repository.getPermissions() );
assertEquals( "644", repository.getPermissions().getFileMode() );
}