@@ -0,0 +1,1997 @@
+package com.github.rholder.esthree.command;%0A%0Aimport com.amazonaws.services.s3.AmazonS3Client;%0Aimport com.amazonaws.services.s3.model.PutObjectRequest;%0Aimport com.amazonaws.services.s3.model.PutObjectResult;%0Aimport com.google.common.collect.Maps;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Aimport java.io.File;%0A%0Aimport static org.mockito.Matchers.any;%0Aimport static org.mockito.Matchers.isNull;%0Aimport static org.mockito.Matchers.matches;%0Aimport static org.mockito.Mockito.mock;%0Aimport static org.mockito.Mockito.times;%0Aimport static org.mockito.Mockito.verify;%0Aimport static org.mockito.Mockito.when;%0A%0Apublic class PutTest %7B%0A%0A    @Test%0A    public void noParameters() throws Exception %7B%0A        AmazonS3Client client = mock(AmazonS3Client.class);%0A        when(client.putObject(any(PutObjectRequest.class))).thenReturn(new PutObjectResult());%0A%0A        Put put = new Put(client, null, null, null, null);%0A        put.call();%0A%0A        verify(client, times(1)).putObject(any(PutObjectRequest.class));%0A    %7D%0A%0A    @Test%0A    public void happyPath() throws Exception %7B%0A        AmazonS3Client client = mock(AmazonS3Client.class);%0A        when(client.putObject(any(PutObjectRequest.class))).thenReturn(new PutObjectResult());%0A%0A        Put put = new Put(client, %22beep%22, %22boop%22, new File(%22testfile%22), Maps.%3CString, String%3EnewHashMap());%0A%0A        Assert.assertEquals(put.bucket, %22beep%22);%0A        Assert.assertEquals(put.key, %22boop%22);%0A        Assert.assertEquals(put.inputFile, new File(%22testfile%22));%0A        put.call();%0A%0A        verify(client, times(1)).putObject(any(PutObjectRequest.class));%0A    %7D%0A%0A//    @Test%0A//    public void happyPathBucketRegion() throws Exception %7B%0A//        AmazonS3Client client = mock(AmazonS3Client.class);%0A//        Mb mb = new Mb(client, %22beep%22, %22boop%22);%0A//%0A//        Assert.assertEquals(mb.bucket, %22beep%22);%0A//        Assert.assertEquals(mb.region, %22boop%22);%0A//        mb.call();%0A//%0A//        verify(client, times(1)).createBucket(matches(%22beep%22), matches(%22boop%22));%0A//    %7D%0A%7D%0A

add some more Put testing