### Question:
SmsResourceProvider { protected String realmFor(Context context) { return context.containsContext(RealmContext.class) ? context.asContext(RealmContext.class).getResolvedRealm() : null; } SmsResourceProvider(ServiceSchema schema, SchemaType type, List<ServiceSchema> subSchemaPath, String uriPath,
            boolean serviceHasInstanceName, SmsJsonConverter converter, Debug debug,
            AMResourceBundleCache resourceBundleCache, Locale defaultLocale); @Action Promise<ActionResponse, ResourceException> schema(Context context); @Action Promise<ActionResponse, ResourceException> template(); @Action Promise<ActionResponse, ResourceException> getType(Context context); static final List<AttributeSchema.Syntax> NUMBER_SYNTAXES; }### Answer:
@Test public void verifyRelmForReturnsRealmWhenItIsContinaedWithinTheContext() { SmsResourceProvider resourceProvider = new MySmsResourceProvider(serviceSchema, schemaType, subSchemaPath, uriPath, true, jsonConverter, debug); String returnedRealm = resourceProvider.realmFor(mockContext); Assertions.assertThat(returnedRealm).isEqualTo(RESOLVED_REALM); }