@Override
  public <T> void storeObject(
      String accountName,
      ObjectType objectType,
      String objectKey,
      T obj,
      String filename,
      boolean isAnUpdate) {
    if (objectType.equals(ObjectType.CANARY_RESULT_ARCHIVE)) {
      var draftRecord = new SqlCanaryArchive();
      draftRecord.setId(objectKey);
      draftRecord.setContent(mapToJson(obj, objectType));
      draftRecord.setCreatedAt(Instant.now());
      draftRecord.setUpdatedAt(Instant.now());
      sqlCanaryArchiveRepo.save(draftRecord);
      return;
    }

    if (objectType.equals(ObjectType.CANARY_CONFIG)) {
      var draftRecord = new SqlCanaryConfig();
      draftRecord.setId(objectKey);
      draftRecord.setContent(mapToJson(obj, objectType));
      draftRecord.setCreatedAt(Instant.now());
      draftRecord.setUpdatedAt(Instant.now());
      sqlCanaryConfigRepo.save(draftRecord);
      return;
    }

    if (objectType.equals(ObjectType.METRIC_SET_PAIR_LIST)) {
      var draftRecord = new SqlMetricSetPairs();
      draftRecord.setId(objectKey);
      draftRecord.setContent(mapToJson(obj, objectType));
      draftRecord.setCreatedAt(Instant.now());
      draftRecord.setUpdatedAt(Instant.now());
      sqlMetricSetPairsRepo.save(draftRecord);
      return;
    }

    if (objectType.equals(ObjectType.METRIC_SET_LIST)) {
      var draftRecord = new SqlMetricSets();
      draftRecord.setId(objectKey);
      draftRecord.setContent(mapToJson(obj, objectType));
      draftRecord.setCreatedAt(Instant.now());
      draftRecord.setUpdatedAt(Instant.now());
      sqlMetricSetsRepo.save(draftRecord);
      return;
    }

    throw new IllegalArgumentException("Unsupported object type: " + objectType);
  }
@Test
  public void testStoreObjectWhenCanaryConfig() {
    var testAccountName = UUID.randomUUID().toString();
    var testObjectType = ObjectType.CANARY_CONFIG;
    var testObjectKey = UUID.randomUUID().toString();

    var testCanaryConfig = createTestCanaryConfig();

    sqlStorageService.storeObject(testAccountName, testObjectType, testObjectKey, testCanaryConfig);

    verify(sqlCanaryConfigRepo).save(any(SqlCanaryConfig.class));
  }