Question: Given the test class below, which code snippet would be a correct assertion?

  1. assertThat(resultAdd).is(2.0)
  2. assertNotNull(resultAdd)
  3. assertThat(resultAdd).isWqualTo(2.0)
  4. assertThat(resultAdd)

Answer: The correct answer of the above question is Option B:assertNotNull(resultAdd)