assertEquals( getTestManagedRepository().getDescription(), repo.getDescription() );
RepositoriesService repositoriesService = getRepositoriesService( authorizationHeader );
int timeout = 20000;
while ( timeout > 0 && repositoriesService.alreadyScanning( repo.getId() ) )
{
Thread.sleep( 500 );
timeout -= 500;
}