title: Bson cannot be resolved with Mongo DB /Java
body: <p>I am getting this error on the last line in code below:
  The type org.bson.conversions.Bson cannot be resolved. It is indirectly referenced from required .class files, I am using Mongo JavaDriver 3.0.2</p>
  
  <pre><code> import com.mongodb.BasicDBObject;
   import com.mongodb.DB;
   import com.mongodb.DBCollection;
   import com.mongodb.Mongo;
   import com.mongodb.MongoClient;
   import com.mongodb.util.JSON;
  
  public class InsertDriver {
  
  public static void main(String[] args) 
  {
  
      Mongo mongo = new Mongo("localhost", 27017);
      DB db = mongo.getDB("postsdb");
      DBCollection collection = db.getCollection("posts");
  
      BasicDBObject doc1 = new BasicDBObject();
      doc1.put("user", "Mike");
      doc1.put("sports", "soccer");
      doc1.put("tweet", "Hi..");
  
      //String json = JSON.serialize( doc1);
      //BasicDBObject bson = (BasicDBObject) JSON.parse( json );
  
      List&lt;BasicDBObject&gt; docs = new ArrayList&lt;BasicDBObject&gt;();
      docs.add(doc1);
  
      collection.insert(docs);  //ERROR HERE
  
   }
  
  }
  </code></pre>