protected JExpression createExpectedExpression( @NotNull JClass testClass, @NotNull JClass domainType ) {
String resourceName = domainType.name() + "_1.0.0_1.json";
JPackage testClassPackage = testClass._package();
if ( !testClassPackage.hasResourceFile( resourceName ) ) {
JTextFile resource = new JTextFile( resourceName );
resource.setContents( createSampleContent( domainType ) );
testClassPackage.addResourceFile( resource );
}
return testClass.dotclass().invoke( METHOD_GET_RESOURCE ).arg( resourceName );
}