This study contributes to the call for influencing practice by increasing attention to how learning environments can be designed to support learning in statistical inference. We report on a design experiment in secondary school (students 14-16 years old), that resulted in a set of lessons with the learning goal of teaching students how to apply concepts and principles of hypothesis testing for making an inference as to whether or not students in secondary school can taste the difference between two brands of cola soda. The design experiment resulted in four design principles for a simulation-based approach for learning hypothesis testing in secondary school. The design principles highlight the combination of practical and digital simulations of samplings. They stress the need for using random generators that allow for high reliability in collecting sample data and introduce a simulation-based method for determining p-values, i.e., to quantify how likely or surprising a sample result, or a result more extreme, is under a null hypothesis.