Have you considered making it package or protected -visible, and make your tests use the same package?