@Test(dataProvider = "provideGoodSamples")
public void shouldParseCorrect_objectDefinition(String objectDefinitionText, String expectedName, Locator expectedLocator) {
PageSpec pageSpec = new PageSpec();
new StateObjectDefinition(pageSpec, new PageSpecReader(EMPTY_PROPERTIES, NO_BROWSER)).process(objectDefinitionText, EMPTY_PLACE);
assertThat(pageSpec.getObjects(), hasKey(expectedName));
assertThat(pageSpec.getObjectLocator(expectedName), is(expectedLocator));
}