@Test
public void createTwoDeviceAndAssert() throws Exception {

    beginTx();
    createTwoDevices();
    List<Device> deviceList = m_deviceDao.findAll();
    assertEquals(2, deviceList.size());
    assertEquals(DEVICE_A, m_deviceDao.getDeviceByName(DEVICE_A).getDeviceName());
    assertEquals(DEVICE_B, m_deviceDao.getDeviceByName(DEVICE_B).getDeviceName());
    assertNull(m_deviceDao.getDeviceByName(DEVICE_C));
    m_deviceDao.deleteAll();
    closeTx();
}