@@ -166,22 +166,22 @@ public void test_Can_Post_Multiple_files_with_Request() {
166166 );
167167
168168assertNotNull ("Response should not be null" ,response );
169- assertEquals ("Id should match" ,Optional . of ( 1 ), response .getId ());
169+ assertEquals ("Id should match" ,1 , ( int ) response .getId ());
170170assertEquals ("RefId should match" ,"zid" ,response .getRefId ());
171171assertEquals ("Should have correct number of files" ,2 ,response .getFiles ().size ());
172172
173173// Verify first file
174174TestDtos .UploadInfo file1 =response .getFiles ().get (0 );
175175assertEquals ("First file name should match" ,"audio" ,file1 .getName ());
176176assertEquals ("First filename should match" ,"test.txt" ,file1 .getFileName ());
177- assertEquals ("First file content length should match" ,Optional . of ( "Hello World" .length ()), file1 .getContentLength ());
177+ assertEquals ("First file content length should match" ,"Hello World" .length (), ( long ) file1 .getContentLength ());
178178assertEquals ("First file content type should match" ,"text/plain" ,file1 .getContentType ());
179179
180180// Verify second file
181181TestDtos .UploadInfo file2 =response .getFiles ().get (1 );
182182assertEquals ("Second file name should match" ,"content" ,file2 .getName ());
183183assertEquals ("Second filename should match" ,"test.md" ,file2 .getFileName ());
184- assertEquals ("Second file content length should match" ,Optional . of ( "## Heading" .length ()), file2 .getContentLength ());
184+ assertEquals ("Second file content length should match" ,"## Heading" .length (), ( long ) file2 .getContentLength ());
185185assertEquals ("Second file content type should match" ,"text/markdown" ,file2 .getContentType ());
186186
187187 }catch (Exception e ) {