@Test(dependsOnMethods = "addProfile")
public void updateProfile() throws Exception{

    Policy effectivePolicy = policyManagerService.getEffectivePolicy(new DeviceIdentifier(DEVICE1, DEVICE_TYPE_A));
    Profile currentProfile = effectivePolicy.getProfile();
    List<ProfileFeature> profileFeatures = new ArrayList<>();
    ProfileFeature profileFeature = new ProfileFeature();
    profileFeature.setContent("{'enable':'true'}");
    profileFeature.setDeviceType(DEVICE_TYPE_A);
    profileFeature.setFeatureCode(POLICY1_CAM_FEATURE1_CODE);
    profileFeatures.add(profileFeature);
    profile.setProfileFeaturesList(profileFeatures);
    profile.setUpdatedDate(new Timestamp(System.currentTimeMillis()));
    Profile updatedProfile = policyManagerService.updateProfile(this.profile);
    Assert.assertNotNull(profile);
    Assert.assertNotNull(currentProfile.getProfileFeaturesList().get(0).getFeatureCode(),
            updatedProfile.getProfileFeaturesList().get(0).getFeatureCode());
}