VariableImpl implements Variable { static VariableImpl fromVariable(final Variable toConvert) { return new VariableImpl(toConvert.getName(), toConvert.getObject(), toConvert.getDefaultValue(), toConvert.getValue()); } private  VariableImpl(); private  VariableImpl(final String name, final String object,
            final String defaultValue, String value); @Override String getName(); @Override String getObject(); @Override String getDefaultValue(); @Override String getValue(); @Override final int hashCode(); @Override final boolean equals(Object obj); @Override String toString();  }
@Test public final void testFromVariable() { Variable variable = VariableImpl.fromVariable(VariableImpl.defaultInstance()); Variable defaultInstance = Profiles.defaultVariable(); assertFalse(variable == defaultInstance); assertTrue(variable.equals(defaultInstance)); }