SimpleEntity implements Serializable, CachableItem, Entity { public static Entity fromJson(String recordResult) throws MetadataParseException { return deserializer.deserializeEntity(recordResult); } SimpleEntity(String internalId);  SimpleEntity(); @Override String getInternalId(); @Override void setInternalId(String internalId); @Override SimpleEntity addProperty(Property property); @Override SimpleEntity addProperty(String propertyName, String stringValue); @Override SimpleEntity addProperty(String propertyName, boolean isCollection, String stringValue); @Override SimpleEntity addProperty(String propertyName, String... stringValues); @Override SimpleEntity addProperty(String propertyName, List<String> stringValues); @Override SimpleEntity addProperty(String propertyName, int intValue); @Override SimpleEntity addProperty(String propertyName, boolean isCollection, int intValue); @Override SimpleEntity addProperty(String propertyName, long longValue); @Override SimpleEntity addProperty(String propertyName, boolean isCollection, long longValue); @Override SimpleEntity addProperty(String propertyName, boolean booleanValue); @Override SimpleEntity addProperty(String propertyName, long... longValues); @Override SimpleEntity setProperty(String propertyName, long longValue); @Override SimpleEntity setProperty(String propertyName, long... longValues); @Override SimpleEntity setProperty(String propertyName, String... values); @Override SimpleEntity setProperty(String propertyName, int value); @Override SimpleEntity setProperties(Map<String, Object> newProperties); @Override Property createProperty(String propertyName); @Override SimpleEntity removeProperty(String propertyName); @Override SimpleEntity addEntity(String propertyName, Entity entity); @Override boolean hasProperty(String propertyName); @Override boolean hasEntity(String entityName); @Override boolean hasValue(String propertyName); @Override List<Property> getProperties(); @Override Property getProperty(String propertyName); @Override SimpleEntity getEntity(String embeddedEntityName); @Override T getValue(String propertyName); @Override List<T> getValues(String propertyName); @Override boolean isMultiValue(String propertyName); @Override int hashCode(); @Override boolean equals(Object obj); static Entity fromJson(String recordResult); static Entity fromStream(InputStream inputStream); static String toJson(Entity entity); @Override long getObjectSize(); @Override SimpleEntity clone(); @Override String toString();  }
@Test public void deserializeEmbeddedEntity() throws MetadataParseException { String entityString = "{\"properties\":{\"__ID\":null,\"embedded\":{\"properties\":{\"embeddedMultivalue\":[\"emValue1\",\"emValue2\",\"emValue3\"],\"embeddedProperty1\":[50,60,70],\"embeddedString\":\"simpleStringValue\"}},\"integerProperty\":200,\"multiValueProperty\":[\"value1\",\"value2\",\"value3\"],\"simpleProperty1\":100}}"; Entity entity = SimpleEntity.fromJson(entityString); assertNotNull(entity); }