when(directoryMock.mkdirs()).thenReturn(true);
}
@Test(expected=AssertionError.class)
public void verifyNewTooManyTimesCausesAssertionError() throws Exception {
assertTrue(new NewFileExample().createDirectoryStructure((DIRECTORY_PATH)));
verify(directoryMock).mkdirs();
// Correct usage
verifyNew(File.class, times(1)).withArguments(DIRECTORY_PATH);