@Test
public void testIsCheckedOut() throws Exception {

    VersionManager delegate = mock(VersionManager.class);
    VersionManagerFacade<Session> facade = getFacade(delegate);
    final String path = "/correct/path";
    when(delegate.isCheckedOut(anyString())).thenReturn(false);
    when(delegate.isCheckedOut(path)).thenReturn(true);
    assertTrue("is true", facade.isCheckedOut(path));
}