@Test
public void testMethodBasedRecording() {

    System.out.println("Inside testMethodBasedRecording");
    MethodMocktail methodMocktail = new MethodMocktail();
    methodMocktail.setUp(this);
    // get all records, insert another one, get all records again. should be
    // n+1
    List<UserDetail> userDetails = userDao.getAll();
    assertThat(1, is(userDetails.size()));
    insertAnotherRow();
    userDetails = userDao.getAll();
    assertThat(2, is(userDetails.size()));
    methodMocktail.close();
}