@Test
public void should_bind_with_only_pk_in_where_clause() throws Exception {
long userId = RandomUtils.nextLong(0,Long.MAX_VALUE);
String name = "name";
EmbeddedKey primaryKey = new EmbeddedKey(userId, name);
when(overrider.getWriteLevel(context)).thenReturn(ALL);
when(context.getPrimaryKey()).thenReturn(primaryKey);
when(idMeta.structure().isEmbeddedId()).thenReturn(true);
when(idMeta.forTranscoding().encodeToComponents(primaryKey, true)).thenReturn(Arrays.<Object>asList(userId, name));