@Override String getStateDebug() { String retval = "uninitialized"; try { this.blob.downloadAttributes(); BlobProperties props = this.blob.getProperties(); retval = props.getLeaseState().toString() + " " + props.getLeaseStatus().toString() + " " + props.getLeaseDuration().toString(); } catch (StorageException e) { retval = "downloadAttributes on the blob caught " + e.toString(); } return retval; } }
assertEquals(props1.getLeaseStatus(), props2.getLeaseStatus());