public void increment(String resourceName, double value) {
    setValue(resourceName, getValue(resourceName) + value);
  }
@Test
  public void testIncrement() {
    ResourceVector resourceVector = ResourceVector.of(13);
    resourceVector.increment(MEMORY_URI, 5);

    Assert.assertEquals(18, resourceVector.getValue(MEMORY_URI), EPSILON);
    Assert.assertEquals(13, resourceVector.getValue(VCORES_URI), EPSILON);
    Assert.assertEquals(13, resourceVector.getValue(CUSTOM_RESOURCE), EPSILON);

    // Check whether overflow causes any issues
    ResourceVector maxFloatResourceVector = ResourceVector.of(Float.MAX_VALUE);
    maxFloatResourceVector.increment(MEMORY_URI, 100);
    Assert.assertEquals(Float.MAX_VALUE, maxFloatResourceVector.getValue(MEMORY_URI), EPSILON);
  }