title: creating a mongodb healthcheck (in dropwizard)
body: <p>Not necessarily specific to dropwizard, but for the life of me I can't figure out how to easily create a healthcheck for mongodb. This is in java, using version 3.3.0 of mongodb's own java driver.</p>
  
  <p>I was hoping there would be a method that doesn't change the state of the database if it succeeds, but also throws an Exception when the query (or connection, or whatever) fails in order to return a health or unhealthy state. Ideally I'd perform a <code>find</code>, but this doesn't throw an Exception as far as I can tell.</p>