nullBlobIterator.add(nullBlob2); nullBlobIterator.add(nullBlob3); Iterator<LogRecord> nullLogIterator = CloudAnalyticsClient.parseLogBlobs(nullBlobIterator).iterator(); try { nullLogIterator.next(); Iterator<LogRecord> emptyIterator = CloudAnalyticsClient.parseLogBlobs(new ArrayList<ListBlobItem>()).iterator(); assertFalse(emptyIterator.hasNext()); emptyIterator.next(); CloudAnalyticsClient.parseLogBlobs(null); } catch (IllegalArgumentException e) { assertEquals(e.getMessage(), "The argument must not be null or an empty string. Argument name: logBlobs.");