title: JUnit test case to insert records into database
body: <p>I want to write a JUnit test case to insert records into my Oracle database. But I want to insert only if the records don't exist. I already have a method in my dao class that is doing the insert, which I will be calling in my JUnit test case. Any idea on how to do it only if a record doesn't exist? Is there something in JUnit like there is assertNotNull, assertTrue that does insert only if the record doesn't exist? </p>