code: private static Object generateValue(Class<?> rawType) {
  
      if (String.class.isAssignableFrom(rawType)) {
        return "test";
      } else if (int.class.isAssignableFrom(rawType) || Integer.class.isAssignableFrom(rawType)) {
        return 10;
      } else if (float.class.isAssignableFrom(rawType) || Float.class.isAssignableFrom(rawType)) {
        return 10F;
      } else if (double.class.isAssignableFrom(rawType) || Double.class.isAssignableFrom(rawType)) {
        return 10D;
      } else if (long.class.isAssignableFrom(rawType) || Long.class.isAssignableFrom(rawType)) {
        return 10L;
      } else if (boolean.class.isAssignableFrom(rawType) || Boolean.class.isAssignableFrom(rawType)) {
        return true;
      } else if (BigDecimal.class.isAssignableFrom(rawType)) {
        return new BigDecimal(10);
      } else if (!rawType.isArray()) {
        return createMockObject(rawType);
      }
      //TODO Date and BigInteger classes may be considered.
  
      // Field type is not supported.
      Logger.w("Unsupported field type : " + rawType.getCanonicalName());
      return null;
    }
docs: Generates a mock value assignable to provided raw type.
  
  @param rawType Type of field
  @return Generated value