expect(fs.getSchema()).andReturn(ft).anyTimes();
expect(fs.getInfo()).andReturn(rInfo).anyTimes();
expect(fs.getName()).andReturn(ft.getName()).anyTimes();
replay(fs);
FeatureTypeInfo ftInfo = cb.buildFeatureType(fs);
assertEquals("foo title", ftInfo.getTitle());
assertEquals("foo description", ftInfo.getDescription());
assertTrue(ftInfo.getKeywords().contains(new Keyword("foo")));
assertTrue(ftInfo.getKeywords().contains(new Keyword("bar")));
assertTrue(ftInfo.getKeywords().contains(new Keyword("baz")));