I tried previously but failed to load asset directly from Json.You can do one thing,Asset asset = context.create().asset("/content/dam/mydoc.pdf", 1, 1, "application/pdf");
// Then use 'when' to initialize the asset based on you implementation
// when(initializerFunction()).thenReturn(asset);