CPAN-Faker contains tools for building fake CPAN instances for testing. For more information, consult the inline POD (documentation).