@Test
public void testGenerateUrlsNI() {

  String cameraName = "IMAQdx:Microsoft LifeCam HD-3000";
  Map<String, String> commands = new HashMap<>();
  commands.put("name", cameraName);
  String url1 = "http://roborio-0000-frc.local:1181/IMAQdxStream.mjpg";
  String url2 = "http://10.0.0.2:1181/IMAQdxStream.mjpg";
  String[] baseUrls = {url1, url2};
  String[] baseUrlsWithNames = Arrays.stream(baseUrls).map(x -> x + "?name=cam0").toArray(String[]::new);
  String[] baseUrlsWithCameraNames = Arrays.stream(baseUrls)
      .map(x -> x + "?name=IMAQdx%3AMicrosoft%20LifeCam%20HD-3000")
      .toArray(String[]::new);
  assertArrayEquals(baseUrlsWithCameraNames, CameraUrlGenerator.generateUrls(commands, baseUrlsWithNames),
      "Name should be replaced");
}