Calculate the expected value, test and assert