What are boundary value analysis and equivalence partitioning, and provide a practical example of how you apply them.