@Test(description = "This test case tests handling FeatureManagementException when updating profile features",
      dependsOnMethods = "testUpdateProfileFeatures",
      expectedExceptions = {FeatureManagementException.class})

public void testUpdateProfileFeaturesThrowingFeatureManagementException() throws Exception {
    String newFeatureCode = "C002";
    int nonExistentProfileId = 9999;
    profileFeaturesList1.get(0).setFeatureCode(newFeatureCode);
    List<ProfileFeature> updatedProfileFeatures = featureManager.updateProfileFeatures(profileFeaturesList1,
                                                                                       nonExistentProfileId);
    Assert.assertEquals(updatedProfileFeatures.get(0).getFeatureCode(), newFeatureCode);
}