@Test
public void testSetScopesIfSpecified_unspecified() throws Exception {

  annotationConfig.setScopesIfSpecified(null);
  Mockito.verifyZeroInteractions(config);
  String[] unspecified = {Api.UNSPECIFIED_STRING_FOR_LIST};
  annotationConfig.setScopesIfSpecified(unspecified);
  Mockito.verifyZeroInteractions(config);
  String[] scopes = { "bleh", "more bleh" };
  annotationConfig.setScopesIfSpecified(scopes);
  annotationConfig.setScopesIfSpecified(unspecified);
  Mockito.verify(config).setScopeExpression(toScopeExpression(scopes));
  Mockito.verifyNoMoreInteractions(config);
}