@Test
public void testSetScopesIfSpecified_empty() throws Exception {

  String[] empty = {};
  annotationConfig.setScopesIfSpecified(empty);
  EndpointMethod method = getResultNoParamsMethod();
  ApiMethodConfig methodConfig = config.getApiClassConfig().getMethods().getOrCreate(method);
  assertEquals(toScopeExpression(), methodConfig.getScopeExpression());
  String[] scopes = {"bleh", "more bleh"};
  annotationConfig.setScopesIfSpecified(scopes);
  annotationConfig.setScopesIfSpecified(empty);
  assertEquals(toScopeExpression(), config.getScopeExpression());
}