*/
public class RealmDomUnmarshallingTest {
@Test
public void realmMayBeUnmarshalled() throws DeltaCloudClientException {
Realm realm = new Realm();
ByteArrayInputStream inputStream = new ByteArrayInputStream(RealmResponseFakes.realmResponse.response.getBytes());
new RealmUnmarshaller().unmarshall(inputStream, realm);
assertNotNull(realm);
assertEquals(RealmResponseFakes.realmResponse.id, realm.getId());
assertEquals(RealmResponseFakes.realmResponse.name, realm.getName());
assertEquals(RealmState.valueOf(RealmResponseFakes.realmResponse.state.toUpperCase()), realm.getState());
assertEquals(RealmResponseFakes.realmResponse.getIntLimit(), realm.getLimit());
}