Buggy code:
public class TestPithosRestClient { private static final String PITHOS_STORAGE_SYSTEM_URL = "https:////pithos.okeanos.grnet.gr//v1" ; private static final String UUID = "ec567bea-4fa2-433d-9935-261a0867ec60" ; private static final String TOKEN = "SFy6ATmUS2cdkbJZkwTDs_cujtFQ87LOCKiLIQiML3g" ; private static final String PITHOS_CONTAINER = "pithos" ; private static final String PITHOS_FILE_TO_DOWNLOAD = "tests//newPithosObjectData.txt" ; private static final String PITHOS_FILE_TO_DOWNLOAD_BLOCK = "tests//newPithosObjectData.txt" ; private static final String PITHOS_FILE_TO_DOWNLOAD_DIR_NAME = "tests//" ; private static final long OFFSET = 5 ; private static final String LOCAL_SOURCE_FILE_TO_UPLOAD = "testOutput.txt" ; private static final String FOLDER_NAME = "testOut" ; private static final String PITHOS_OBJECT_NAME_TO_OUTPUTSTREAM = "tests//newPithosObjectData.txt" ; private static final String DUMMY_BLOCK_DATA = "TEST<seq2seq4repair_space>DATA" ; private static PithosResponse pithosResponse ; private static Collection < String > object_block_hashes ; private static HadoopPithosConnector hdconnector ; private static final Utils util = new Utils ( ) ; private static final String BIG_BLOCK_FILE = "bigBlockFile.txt" ; private static final int SIZE_OF_BIG_BLOCK_FILE = 9437184 ; @ BeforeClass public static void createHdConnector ( ) { } @ Test public void testGet_Container_Info ( ) { } @ Test public void testGet_Container_File_List ( ) { } @ Test public void testGet_Pithos_Object_Metadata ( ) { } @ Test public void testGet_Pithos_Object_Size ( ) { } @ Test public void testGet_Pithos_Object ( ) { } @ Test public void testGet_Pithos_Object_Block_Hashes ( ) { } @ Test public void testGet_Pithos_Object_Block_Default_Size ( ) { } @ Test public void testGet_Pithos_Object_Blocks_Number ( ) { } @ Test public void testGet_Pithos_Object_Block_Size ( ) { } @ Test public void testGet_Pithos_Object_Block ( ) { } @ Test public void testGet_Pithos_Object_Block_All ( ) { } @ Test public void testRead_Pithos_Object ( ) throws IOException { } @ Test public void testPithos_Object_Block_InputStream_With_Offset ( ) throws IOException { } @ Test public void testStore_File_To_Pithos ( ) throws IOException { System . out . println ( "---------------------------------------------------------------------" ) ; System . out . println ( ( ( ( ( "STORE<seq2seq4repair_space>ACTUAL<seq2seq4repair_space>FILE:<seq2seq4repair_space><" + ( TestPithosRestClient . LOCAL_SOURCE_FILE_TO_UPLOAD ) ) + "><seq2seq4repair_space>TO<seq2seq4repair_space>PITHOS<seq2seq4repair_space>STORAGE<seq2seq4repair_space>SYSTEM<seq2seq4repair_space>AS<seq2seq4repair_space>OBJECT<seq2seq4repair_space><" ) + ( TestPithosRestClient . PITHOS_OBJECT_NAME_TO_OUTPUTSTREAM ) ) + ">" ) ) ; System . out . println ( "---------------------------------------------------------------------" ) ; <START_BUG> String response = TestPithosRestClient . hdconnector . uploadFileToPithos ( "" , TestPithosRestClient . LOCAL_SOURCE_FILE_TO_UPLOAD ) ; <END_BUG> System . out . println ( ( "RESPONSE<seq2seq4repair_space>FROM<seq2seq4repair_space>PITHOS:<seq2seq4repair_space>" + response ) ) ; System . out . println ( "---------------------------------------------------------------------\n" ) ; } @ Test public void testStore_Object_To_Pithos ( ) throws IOException { } @ Test public void testCreate_Folder_To_Pithos ( ) throws IOException { } @ Test public void testAppend_Pithos_Small_Block ( ) throws IOException , NoSuchAlgorithmException { } @ Test public void testAppend_Pithos_Big_Block ( ) throws IOException , NoSuchAlgorithmException { } @ Test public void testRead_Pithos_Object_Block_Sizes ( ) throws IOException { } @ AfterClass public static void tearDown ( ) throws IOException { } public static void main ( String [ ] args ) throws IOException { } }

Fix:
String response = TestPithosRestClient . hdconnector . uploadFileToPithos ( "" , TestPithosRestClient . LOCAL_SOURCE_FILE_TO_UPLOAD , false ) ;