@Override
  public UserAccount upsertDb(final UserAccount userAccount) {
    String userId = userAccount.getUserId();
    String userName = userAccount.getUserName();
    String additionalInfo = userAccount.getAdditionalInfo();
    db.getCollection(CachingConstants.USER_ACCOUNT).updateOne(
            new Document(USER_ID, userId),
            new Document("$set",
                    new Document(USER_ID, userId)
                            .append(USER_NAME, userName)
                            .append(ADD_INFO, additionalInfo)
            ),
            new UpdateOptions().upsert(true)
    );
    return userAccount;
  }
@Test
  void upsertDb() {
    MongoCollection<Document> mongoCollection = mock(MongoCollection.class);
    when(db.getCollection(CachingConstants.USER_ACCOUNT)).thenReturn(mongoCollection);
    assertDoesNotThrow(()-> {mongoDb.upsertDb(userAccount);});
  }