@Override
  public void commit() {
    if (context == null || context.isEmpty()) {
      return;
    }
    LOGGER.info("Commit started");
    if (context.containsKey(UnitActions.INSERT.getActionValue())) {
      commitInsert();
    }

    if (context.containsKey(UnitActions.MODIFY.getActionValue())) {
      commitModify();
    }
    if (context.containsKey(UnitActions.DELETE.getActionValue())) {
      commitDelete();
    }
    LOGGER.info("Commit finished.");
  }
@Test
  void shouldNotWriteToDbIfContextIsNull() {
    var weaponRepository = new ArmsDealer(null, weaponDatabase);

    weaponRepository.commit();

    verifyNoMoreInteractions(weaponDatabase);
  }