@Test
public void testSetClientIdsIfSpecified_empty() throws Exception {

  String[] empty = {};
  annotationConfig.setClientIdsIfSpecified(empty);
  EndpointMethod method = getResultNoParamsMethod();
  ApiMethodConfig methodConfig = config.getApiClassConfig().getMethods().getOrCreate(method);
  assertEquals(Collections.emptyList(), methodConfig.getClientIds());
  String[] clientIds = { "bleh", "more bleh" };
  annotationConfig.setClientIdsIfSpecified(clientIds);
  annotationConfig.setClientIdsIfSpecified(empty);
  assertEquals(Collections.emptyList(), config.getClientIds());
}