EasyMock.expect(comMock.getPropertyAsLong("TrackDatabaseID")).andReturn((long) databaseID);
EasyMock.replay(objectMock);
EasyMock.replay(comMock);
IITObject object = new ITObjectImpl(objectMock);
ITObjectIDs ids = object.getITObjectIDs();
assertTrue(ids.getSourceId() == sourceID);
assertTrue(ids.getPlaylistId() == playlistID);
assertTrue(ids.getTrackId() == trackID);
assertTrue(ids.getDatabaseId() == databaseID);