Variable { public static Variable createString(String value) throws NullPointerException { if (value == null) { throw new NullPointerException(); } return new Variable(STRING_TYPE, value); } protected  Variable(int type, Object value); static Variable createString(String value); static Variable createInteger(Integer value); static Variable createFloat(Float value); static Variable createBoolean(Boolean value); static Variable createTable(List<Variable> value); boolean isString(); boolean isInteger(); boolean isFloat(); boolean isBoolean(); boolean isTable(); String getString(); List<Variable> getTable(); Integer getInteger(); float getFloat(); boolean getBoolean(); String get_type(); String get_value();  }
@Test(expected = NullPointerException.class) public void testNullPointerWithCreateString() { Variable.createString(null); }