public static String getValue( Object object, Field field ) {
    try {
      Method getMethod = getDeclaredMethod( object.getClass(),
        GET_PREFIX + StringUtils.capitalize( field.getName() ) );
      return (String) getMethod.invoke( object );
    } catch ( NoSuchMethodException | IllegalAccessException | InvocationTargetException e ) {
      return null;
    }
  }
@Test
  public void testGetValue() throws NoSuchFieldException {
    TestConnectionWithBucketsDetailsChild testConnectionDetails = new TestConnectionWithBucketsDetailsChild();
    testConnectionDetails.setPassword( PASSWORD );
    testConnectionDetails.setPassword3( PASSWORD3 );
    String value = EncryptUtils.getValue( testConnectionDetails,
      testConnectionDetails.getClass().getDeclaredField( "password3" ) );
    Assert.assertNotNull( value );
    Assert.assertEquals( PASSWORD3, value );
  }