2526272829303132333435
protected Session session; protected UserDAO dao; public void setup() throws Exception { this.session = mock(Session.class); this.dao = new UserDAO(new Provider<Session>() { @Override public Session get() { return session; } });