@@ -0,0 +1,1637 @@
+package org.dasein.cloud.aws;%0A%0Aimport org.dasein.cloud.CloudException;%0Aimport org.junit.Test;%0Aimport org.w3c.dom.Element;%0Aimport org.xml.sax.SAXException;%0A%0Aimport javax.xml.parsers.DocumentBuilder;%0Aimport javax.xml.parsers.DocumentBuilderFactory;%0Aimport javax.xml.parsers.ParserConfigurationException;%0Aimport java.io.ByteArrayInputStream;%0Aimport java.io.IOException;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0A/**%0A * @author Eugene Yaroslavtsev%0A * @since 11.09.2014%0A */%0Apublic class AWSCloudTests %7B%0A%0A    @Test%0A    public void testGetTimestampValue() throws ParserConfigurationException, IOException, SAXException, CloudException %7B%0A        DocumentBuilder documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();%0A%0A        Element node =  documentBuilder%0A                .parse(new ByteArrayInputStream(%22%3Cnode%3E2014-07-01T15:08:28Z%3C/node%3E%22.getBytes()))%0A                .getDocumentElement();%0A%0A        Element nodeWithMs =  documentBuilder%0A                .parse(new ByteArrayInputStream(%22%3Cnode%3E2014-07-01T15:08:28.001Z%3C/node%3E%22.getBytes()))%0A                .getDocumentElement();%0A%0A        Element brokenNode =  documentBuilder%0A                .parse(new ByteArrayInputStream(%22%3Cnode%3E2014-07-01T15:08:28.001.0Z%3C/node%3E%22.getBytes()))%0A                .getDocumentElement();%0A%0A        assertEquals(1404227308000L, AWSCloud.getTimestampValue(node));%0A        assertEquals(1404227308001L, AWSCloud.getTimestampValue(nodeWithMs));%0A%0A        try %7B%0A            AWSCloud.getTimestampValue(brokenNode);%0A            throw new AssertionError();%0A        %7D catch( CloudException ex ) %7B%0A            //expected exception%0A        %7D%0A    %7D%0A%7D%0A

add tests for getTimestampValue() method (#1119)