public class ReflectionUtilsTest {
@Test
public void shouldGetObjectPropertiesAndValues() throws Exception {
final StubRequest stubRequest = StubRequest.newStubRequest();
stubRequest.addMethod(HttpMethods.POST);
final Map<String, String> properties = ReflectionUtils.getProperties(stubRequest);
assertThat("[POST]").isEqualTo(properties.get("method"));
assertThat(properties.get("url")).isNull();
assertThat(properties.get("post")).isNull();