@Test
public void testDeviceMetaIsFetchedFromDMS() {

    Device device = mock(Device.class);
    when(m_deviceDao.getDeviceByName("Bangalore-south")).thenReturn(device);
    assertEquals(device, m_dm.getDevice("Bangalore-south"));
    verify(m_deviceDao).getDeviceByName("Bangalore-south");
}