asserts are wrong way round for testng: should be `assertEquals(actual, expected)`, otherwise error messages will be confusing.