mockHelper.verifyAll();
}
@Test (expected = IllegalArgumentException.class)
public void testCopyDir_ToDirNotADir() throws Exception {
FileWrapper mockFromDir = mockHelper.createMock("mockFromFile", FileWrapper.class);
expect(mockFromDir.getAbsolutePath()).andStubReturn("/absolute/path/to/mockFromFile");
FileWrapper mockToDir = mockHelper.createMock("mockToDir", FileWrapper.class);
expect(mockToDir.getAbsolutePath()).andStubReturn("/absolute/path/to/mockToDir");
expect(mockFromDir.isDirectory()).andStubReturn(true);
expect(mockToDir.isDirectory()).andStubReturn(false);
mockHelper.replayAll();
underTest.copyDir(mockFromDir, mockToDir);
mockHelper.verifyAll();
}