DeviceInfo implements Value<String> { public boolean isCallHome() { return m_deviceCallHomeInfo != null; } DeviceInfo();  DeviceInfo(String key, SshConnectionInfo deviceConnectionInfo);  DeviceInfo(String key, CallHomeInfo deviceCallHomeInfo); SshConnectionInfo getDeviceConnectionInfo(); void setDeviceConnectionInfo(SshConnectionInfo deviceConnenctionInfo); CallHomeInfo getDeviceCallHomeInfo(); void setDeviceCallHomeInfo(CallHomeInfo deviceCallHomeInfo); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); Map<String, Object> getDeviceState(); @Override String getKey(); void setKey(String key); boolean isCallHome();  }
@Test public void testIsCallHomeReturnsTrue_WhenDeviceIsCallHome() { DeviceInfo callHomeInfo = getCallHomeDevice(); assertTrue(callHomeInfo.isCallHome()); }
@Test public void testIsCallHomeReturnsFalse_WhenDeviceIsDirect() { DeviceInfo callHomeInfo = getDirectDevice(); assertFalse(callHomeInfo.isCallHome()); }