Java - Practiced testing class relying on only interfaces