@Test
public void testGetChildDevice() throws SDKException {
//Given
GId gid = new GId("deviceId");
ManagedObjectReferenceRepresentation retrieved = new ManagedObjectReferenceRepresentation();
when(restConnector.get(CHILD_DEVICES_URL + "/deviceId", MANAGED_OBJECT_REFERENCE,
ManagedObjectReferenceRepresentation.class)).thenReturn(retrieved);
// when
ManagedObjectReferenceRepresentation result = managedObject.getChildDevice(gid);
// then
assertThat(result, sameInstance(retrieved));
}