code: public static Bucket create(CouchbaseMock mock, BucketConfiguration config) throws IOException {
            switch (config.type) {
                  case MEMCACHED:
                      return new MemcachedBucket(mock, config);
                  case COUCHBASE:
                      return new CouchbaseBucket(mock, config);
                  default:
                      throw new FileNotFoundException("I don't know about this type...");
              }
      }
docs: Create a bucket.
  
  @param mock The cluster this bucket is a member of
  @param config The configuration for the bucket
  @return The newly instantiated subclass
  @throws IOException if an I/O error occurs