@Test
@SuppressWarnings("unchecked")
public void testGetOptions() throws Exception {

  String[] args = { "--host=localhost", "--roadName=route66", "--streamName=left" };
  final OfframpOptions<JsonNode> ref = OfframpOptions
      .builder(JsonNode.class)
      .host("localhost")
      .roadName("route66")
      .streamName("left")
      .defaultOffset(DefaultOffset.LATEST)
      .requestBuffer(200, 120)
      .tlsConfigFactory(null)
      .build();
  doNothing().when(offrampConsoleSpied).runClient(offrampOptionsCaptor.capture());
  CommandLine.call(offrampConsoleSpied, args);
  final OfframpOptions<JsonNode> out = offrampOptionsCaptor.getValue();
  assertThat(out, is(notNullValue()));
  assertEquals(out, ref);
}