@Test
public void checkCanCreateWhenFeatureDisabled() {

    when(authorizationManager.authorize(any(ResourceRef.class),
                                        eq(ResourceAction.READ),
                                        eq(user))).thenReturn(false);
    assertFalse(handler.canCreate());
    assertResourceRef();
}