@Test
public void should_lazy_load_all_static_columns() throws Exception {
//Given
Long partitionKey = RandomUtils.nextLong(0,Long.MAX_VALUE);
ClusteredEntityWithOnlyStaticColumns location = new ClusteredEntityWithOnlyStaticColumns(new ClusteredOnlyStaticColumnsKey(partitionKey, "location"), "Paris", "rue de la paix");
manager.insert(location);
//When
ClusteredEntityWithOnlyStaticColumns proxy = manager.getProxy(ClusteredEntityWithOnlyStaticColumns.class, location.getId());
assertThat(proxy.getCity()).isEqualTo("Paris");
assertThat(proxy.getStreet()).isEqualTo("rue de la paix");
proxy.setCity("Lyon");
proxy.setStreet("rue Lamartine");
manager.update(proxy);
//Then
final ClusteredEntityWithOnlyStaticColumns updated = manager.find(ClusteredEntityWithOnlyStaticColumns.class, location.getId());
assertThat(updated.getCity()).isEqualTo("Lyon");
assertThat(updated.getStreet()).isEqualTo("rue Lamartine");
}