@Test
public void testWriteBinary() throws IOException {
final String fileName = "test.bin";
final String filePath = publicDirPath + "/" + fileName;
IUnifiedRepository repo = mock( IUnifiedRepository.class );
// simulate request for publicDir
RepositoryFile publicDir =
new RepositoryFile.Builder( "123", ClientRepositoryPaths.getPublicFolderName() ).folder( true ).build();
doReturn( publicDir ).when( repo ).getFile( publicDirPath );
mp.defineInstance( IUnifiedRepository.class, repo );