### Question:
ResourceModelResolverImpl implements ResourceModelResolver { @Override public Object resolveMostSpecificModelWithName(Resource resource, String name) { if (resource == null) { throw new IllegalArgumentException("Method argument resource must not be null."); } if (name == null) { throw new IllegalArgumentException("Method argument modelName must not be null."); } return resolveMostSpecificModelForResource(resource, true, name); }  @Override Object resolveMostSpecificModelWithName(Resource resource, String name); @Override Object resolveMostSpecificModel(Resource resource); @Override Object resolveMostSpecificModelIncludingModelsForBaseTypes(Resource resource);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testResolveMostSpecificModelWithModelNameRequiresResource() { this.testee.resolveMostSpecificModelWithName(null, "modelName"); }
@Test(expected = IllegalArgumentException.class) public void testResolveMostSpecificModelWithModelNameRequiresModelName() { this.testee.resolveMostSpecificModelWithName(mock(Resource.class), null); }