public void dateTimeEqualsTest() {
StringBuilder sb = new StringBuilder();
Session s = Factory.getSession();
Database currDb = s.getCurrentDatabase();
View threads = currDb.getView("AllThreads");
Random randomGenerator = new Random();
int randomInt = randomGenerator.nextInt(100);
Document firstDoc = threads.getNthDocument(randomInt);
randomInt = randomGenerator.nextInt(100);
Document secondDoc = threads.getNthDocument(randomInt);
String firstDt = firstDoc.getFirstItem("Date").getText();
String secondDt = secondDoc.getFirstItem("Date").getText();
DateTime firstDate = s.createDateTime(firstDt);
DateTime secondDate = s.createDateTime(secondDt);
sb.append("Comparing " + firstDt + " (" + firstDoc.getUniversalID() + ") with " + secondDt + " ("