public static void setValue( Object object, Field field, String value ) {
    try {
      Method setMethod = getDeclaredMethod( object.getClass(),
        SET_PREFIX + StringUtils.capitalize( field.getName() ), String.class );
      setMethod.invoke( object, value );
    } catch ( NoSuchMethodException | InvocationTargetException | IllegalAccessException ignore ) {
      // ignore
    }
  }
@Test
  public void testSetValue() throws NoSuchFieldException {
    TestConnectionWithBucketsDetailsChild testConnectionDetails = new TestConnectionWithBucketsDetailsChild();
    testConnectionDetails.setPassword( PASSWORD );
    testConnectionDetails.setPassword3( PASSWORD3 );
    EncryptUtils.setValue( testConnectionDetails,
      testConnectionDetails.getClass().getDeclaredField( "password3" ), PASSWORD2 );
    Assert.assertEquals( testConnectionDetails.getPassword3(), PASSWORD2 );
  }