JUnit4 Rule for integration testing

I use dropwizard and I needed to test integration DAO with DB. I believe that some other users have similar needs and this 2 classes could help.