@Test
public void testSetClientIdsIfSpecified() throws Exception {

  String[] clientIds = { "foo", "bar" };
  annotationConfig.setClientIdsIfSpecified(clientIds);
  assertEquals(Arrays.asList(clientIds), config.getClientIds());
  ApiMethodConfig methodConfig =
      config.getApiClassConfig().getMethods().getOrCreate(getResultNoParamsMethod());
  assertEquals(Arrays.asList(clientIds), methodConfig.getClientIds());
}