@Override
  public UserAccount writeToDb(final UserAccount userAccount) {
    db.getCollection(USER_ACCOUNT).insertOne(
            new Document(USER_ID, userAccount.getUserId())
                    .append(USER_NAME, userAccount.getUserName())
                    .append(ADD_INFO, userAccount.getAdditionalInfo())
    );
    return userAccount;
  }
@Test
  void writeToDb() {
    MongoCollection<Document> mongoCollection = mock(MongoCollection.class);
    when(db.getCollection(CachingConstants.USER_ACCOUNT)).thenReturn(mongoCollection);
    assertDoesNotThrow(()-> {mongoDb.writeToDb(userAccount);});
  }