### Question:
MongoDbResourceInfo extends BaseResourceInfo implements IExternalResourceInfo { @JsonProperty( JSON_PROPERTY_USERNAME ) public String getUser() { return user; } MongoDbResourceInfo( MongoDbMeta mongoDbMeta );  MongoDbResourceInfo( MongoDbMeta mongoDbMeta, IAnalysisContext context );  MongoDbResourceInfo( String hostNames, String port, String database ); @Override String getType(); @JsonProperty( JSON_PROPERTY_CONNECTION_TIMEOUT ) String getConnectTimeout(); void setConnectTimeout( String connectTimeout ); @JsonProperty( JSON_PROPERTY_DATABASE_NAME ) String getDatabase(); void setDatabase( String database ); @JsonProperty( JSON_PROPERTY_HOST_NAMES ) String getHostNames(); void setHostNames( String hostNames ); @JsonProperty( JSON_PROPERTY_PORT ) String getPort(); void setPort( String port ); @JsonProperty( JSON_PROPERTY_SOCKET_TIMEOUT ) String getSocketTimeout(); void setSocketTimeout( String socketTimeout ); @JsonProperty( JSON_PROPERTY_USE_ALL_REPLICA_SET_MEMBERS ) boolean isUseAllReplicaSetMembers(); void setUseAllReplicaSetMembers( boolean useAllReplicaSetMembers ); @JsonProperty( JSON_PROPERTY_USE_KERBEROS_AUTHENTICATION ) boolean isUseKerberosAuthentication(); void setUseKerberosAuthentication( boolean useKerberosAuthentication ); @JsonProperty( JSON_PROPERTY_USERNAME ) String getUser(); void setUser( String user ); String getPassword(); @JsonProperty( JSON_PROPERTY_PASSWORD ) void setPassword( String password ); @JsonProperty( JSON_PROPERTY_COLLECTION ) String getCollection(); void setCollection( String collection ); static final String JSON_PROPERTY_PORT; static final String JSON_PROPERTY_USERNAME; static final String JSON_PROPERTY_PASSWORD; static final String JSON_PROPERTY_DATABASE_NAME; static final String JSON_PROPERTY_CONNECTION_TIMEOUT; static final String JSON_PROPERTY_HOST_NAMES; static final String JSON_PROPERTY_SOCKET_TIMEOUT; static final String JSON_PROPERTY_USE_ALL_REPLICA_SET_MEMBERS; static final String JSON_PROPERTY_USE_KERBEROS_AUTHENTICATION; static final String JSON_PROPERTY_COLLECTION; }### Answer:
@Test public void testGetUser() throws Exception { assertNull( info.getUser() ); info.setUser( "joe" ); assertEquals( "joe", info.getUser() ); }