- Optional res = crossConnectImpl221.postCrossConnect("deviceId", 100L, "srcTp", "destTp");
- Assert.assertEquals(res.get(), "srcTp-destTp-100");
+ SpectrumInformation spectrumInformation = new SpectrumInformation();
+ spectrumInformation.setWaveLength(Uint32.valueOf(1));
+ spectrumInformation.setLowerSpectralSlotNumber(761);
+ spectrumInformation.setHigherSpectralSlotNumber(768);
+ Optional res = crossConnectImpl221.postCrossConnect("deviceId", "srcTp", "destTp", spectrumInformation);
+ Assert.assertEquals(res.get(), "srcTp-destTp-761:768");