@Before public void setUp() { when(resource.getScope()).thenReturn(Scopes.PROJECT); when(resource.getQualifier()).thenReturn(Qualifiers.PROJECT); }