QueryManagerFacade implements QueryManager { @Override public String[] getSupportedQueryLanguages() throws RepositoryException { return delegate.getSupportedQueryLanguages(); } QueryManagerFacade(final @NotNull QueryManager delegate, final @NotNull SessionFacade<S> session); @Override Query createQuery(String statement, String language); @Override QueryObjectModelFactory getQOMFactory(); @Override Query getQuery(Node node); @Override String[] getSupportedQueryLanguages();  }
@Test public void testGetSupportedQueryLanguages() throws Exception { QueryManager delegate = mock(QueryManager.class); QueryManagerFacade<Session> facade = getFacade(delegate); final String[] value = new String[0]; when(delegate.getSupportedQueryLanguages()).thenReturn(value); assertSame("same value", value, facade.getSupportedQueryLanguages()); }